terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
FtpControlStream.cs
Go to the documentation of this file.
1using System;
3using System.IO;
7using System.Text;
8
9namespace System.Net
10{
11 // Token: 0x0200014A RID: 330
13 {
14 // Token: 0x170001A8 RID: 424
15 // (get) Token: 0x06000801 RID: 2049 RVA: 0x0001BDB4 File Offset: 0x00019FB4
16 // (set) Token: 0x06000802 RID: 2050 RVA: 0x0001BDD8 File Offset: 0x00019FD8
18 {
19 get
20 {
21 while (this._credentials == null || this._credentials == null)
22 {
23 }
24 throw new InvalidCastException();
25 }
26 set
27 {
28 if (this._credentials == null)
29 {
30 }
31 }
32 }
33
34 // Token: 0x06000803 RID: 2051 RVA: 0x0001BDF0 File Offset: 0x00019FF0
35 internal FtpControlStream(global::System.Net.Sockets.TcpClient client)
36 : base(client)
37 {
38 }
39
40 // Token: 0x06000804 RID: 2052 RVA: 0x0001BE04 File Offset: 0x0001A004
41 internal void AbortConnect()
42 {
43 global::System.Net.Sockets.Socket dataSocket = this._dataSocket;
44 if (dataSocket != null)
45 {
46 dataSocket.Close();
47 }
48 }
49
50 // Token: 0x06000805 RID: 2053 RVA: 0x0001BE28 File Offset: 0x0001A028
51 private static void AcceptCallback(IAsyncResult asyncResult)
52 {
53 }
54
55 // Token: 0x06000806 RID: 2054 RVA: 0x0001BE70 File Offset: 0x0001A070
56 private static void ConnectCallback(IAsyncResult asyncResult)
57 {
58 }
59
60 // Token: 0x06000807 RID: 2055 RVA: 0x0001BE8C File Offset: 0x0001A08C
61 private static void SSLHandshakeCallback(IAsyncResult asyncResult)
62 {
63 }
64
65 // Token: 0x06000808 RID: 2056 RVA: 0x0001BEA8 File Offset: 0x0001A0A8
67 {
68 if (this._dataSocket == null)
69 {
70 throw new InvalidCastException();
71 }
72 if (this._tlsStream != null)
73 {
74 WebRequest request = this._request;
76 if (request != null)
77 {
78 }
79 }
80 bool usingSecureStream = base.UsingSecureStream;
81 if (this._request != null)
82 {
83 }
84 global::System.Net.Sockets.Socket dataSocket = this._dataSocket;
85 bool isAsync = this._isAsync;
86 if (isAsync)
87 {
88 if (!isAsync)
89 {
90 }
92 }
93 WebRequest request2 = this._request;
95 if (request2 != null)
96 {
97 }
98 return CommandStream.PipelineInstruction.GiveStream;
99 }
100
101 // Token: 0x06000809 RID: 2057 RVA: 0x0001BF20 File Offset: 0x0001A120
102 protected override void ClearState()
103 {
105 if (!true)
106 {
107 }
109 }
110
111 // Token: 0x0600080A RID: 2058 RVA: 0x0001BF40 File Offset: 0x0001A140
113 {
114 if (!true)
115 {
116 }
118 if (entry != null)
119 {
120 string command = entry.Command;
121 if (command == null || command == null)
122 {
123 }
124 }
125 if (response != null)
126 {
127 string statusDescription = response.StatusDescription;
128 if (statusDescription != null && statusDescription == null)
129 {
130 throw new ArrayTypeMismatchException();
131 }
132 }
134 NetEventSource.Info(this, formattableString, "PipelineCallback");
135 if (response != null)
136 {
137 int status = response.Status;
139 string statusDescription2 = response.StatusDescription;
141 int index = this._index;
142 bool flag = entry.Command == "OPTS utf8 on\r\n";
143 int status2 = response.Status;
145 string statusLine = this.StatusLine;
146 int num = entry.Command.IndexOf("USER");
147 int num2 = 1;
149 this._index = "USER";
151 int num3 = entry.Command.IndexOf("PASS");
152 int num4 = 1;
154 if (entry.Flags == (CommandStream.PipelineEntryFlags)0)
155 {
156 goto IL_0178;
157 }
158 if (this._dataSocket != null)
159 {
160 string command2 = entry.Command;
161 string text;
163 }
164 }
165 Encoding @default = Encoding.Default;
166 this._encoding = @default;
167 this._decoder = @default;
169 string statusLine2 = this.StatusLine;
172 base.CloseSocket();
173 bool usingSecureStream = base.UsingSecureStream;
174 bool flag2 = entry.Command == "AUTH TLS\r\n";
175 IL_0178:
176 this.TryUpdateContentLength("AUTH TLS\r\n");
177 WebRequest request = this._request;
178 if (request != null)
179 {
180 }
181 return this.QueueOrCreateFtpDataStream(stream);
182 }
183
184 // Token: 0x0600080B RID: 2059 RVA: 0x0001C140 File Offset: 0x0001A340
186 {
187 if (req != null)
188 {
189 }
192 bool usingSecureStream = base.UsingSecureStream;
194 int num = 2;
197 if (loginState != FtpLoginState.NotLoggedIn)
198 {
199 }
200 string password;
201 if (this.Credentials != null)
202 {
203 string userName = this.Credentials.UserName;
204 string domain = this.Credentials.Domain;
205 bool flag = string.IsNullOrEmpty(domain);
206 string text = domain + "\\" + userName;
207 password = this.Credentials.Password;
208 }
209 if (password._stringLength != 0 || password._stringLength == 0)
210 {
211 }
212 bool usingSecureStream2 = base.UsingSecureStream;
213 if ("0" == null)
214 {
215 }
217 if (establishedServerDirectory != null)
218 {
219 string loginDirectory = this._loginDirectory;
220 if (loginDirectory != null)
221 {
223 string loginDirectory2 = this._loginDirectory;
224 string loginDirectory3 = this._loginDirectory;
226 }
227 }
228 string text2;
229 int stringLength = text2._stringLength;
232 ushort[] numbers = base.ServerAddress._numbers;
234 string text4;
235 string text3 = text4 + "/";
236 throw new InvalidCastException();
237 }
238
239 // Token: 0x0600080C RID: 2060 RVA: 0x0001C278 File Offset: 0x0001A478
241 {
242 if (this._dataHandshakeStarted)
243 {
244 int num = 1;
245 isSocketReady.m_value = num != 0;
246 }
247 int num2 = 1;
249 bool flag = entry.Command == "PASV\r\n";
250 bool flag2 = entry.Command == "EPSV\r\n";
251 int status = response.Status;
252 bool flag3 = entry.Command == "PASV\r\n";
253 string statusDescription = response.StatusDescription;
254 string text;
257 if (text == null)
258 {
259 }
260 NetEventSource.Fail(this, "'port' not set.", "QueueOrCreateDataConection");
261 WebRequest request = this._request;
262 global::System.Net.Sockets.Socket socket = base.Socket;
263 if (request != null)
264 {
265 }
266 global::System.Net.Sockets.Socket socket2;
268 if (base.Socket.LocalEndPoint != null)
269 {
270 }
271 global::System.Net.Sockets.Socket dataSocket = this._dataSocket;
272 IPAddress serverAddress = base.ServerAddress;
274 NetEventSource.Info(this, "starting Connect()", "QueueOrCreateDataConection");
275 bool isAsync = this._isAsync;
276 global::System.Net.Sockets.Socket dataSocket2 = this._dataSocket;
277 global::System.Net.Sockets.Socket dataSocket3;
278 if (isAsync)
279 {
280 if (!isAsync)
281 {
282 }
283 if (!isAsync)
284 {
285 }
287 if (!isAsync)
288 {
289 }
290 NetEventSource.Info(this, "starting Accept()", "QueueOrCreateDataConection");
291 bool isAsync2 = this._isAsync;
293 if (isAsync2)
294 {
295 if (!isAsync2)
296 {
297 }
298 }
299 }
300 global::System.Net.Sockets.Socket socket3 = dataSocket3.Accept();
302 IPAddress serverAddress2 = base.ServerAddress;
303 if (this._dataSocket.RemoteEndPoint != null)
304 {
305 }
306 dataSocket3.Close();
307 throw new InvalidCastException();
308 }
309
310 // Token: 0x0600080D RID: 2061 RVA: 0x0001C434 File Offset: 0x0001A634
311 private static void GetPathInfo(FtpControlStream.GetPathOption pathOption, global::System.Uri uri, [Out] string path, [Out] string directory, [Out] string filename)
312 {
313 int num = 47;
314 string text;
315 int num2 = text.LastIndexOf((char)num);
316 int num3 = 47;
317 string text2;
318 int num4 = text2.LastIndexOf((char)num3);
319 }
320
321 // Token: 0x0600080E RID: 2062 RVA: 0x0001C468 File Offset: 0x0001A668
322 private string FormatAddress(IPAddress address, int Port)
323 {
324 /*
325An exception occurred when decompiling this method (0600080E)
326
327ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.FtpControlStream::FormatAddress(System.Net.IPAddress,System.Int32)
328
329 ---> System.Exception: Basic block has to end with unconditional control flow.
330{
331 Block_0:
332 stloc:uint8[](var_0_06, call:uint8[](IPAddress::GetAddressBytes, ldloc:IPAddress(address)))
333}
334
335 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
336 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
337 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
338 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
339 --- End of inner exception stack trace ---
340 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
341 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
342*/;
343 }
344
345 // Token: 0x0600080F RID: 2063 RVA: 0x0001C488 File Offset: 0x0001A688
346 private string FormatAddressV6(IPAddress address, int port)
347 {
348 /*
349An exception occurred when decompiling this method (0600080F)
350
351ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.FtpControlStream::FormatAddressV6(System.Net.IPAddress,System.Int32)
352
353 ---> System.Exception: Basic block has to end with unconditional control flow.
354{
355 Block_0:
356 stloc:NumberFormatInfo(var_4_07, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
357}
358
359 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
360 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
361 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
362 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
363 --- End of inner exception stack trace ---
364 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
365 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
366*/;
367 }
368
369 // Token: 0x170001A9 RID: 425
370 // (get) Token: 0x06000810 RID: 2064 RVA: 0x0001C4A0 File Offset: 0x0001A6A0
371 internal long ContentLength
372 {
373 get
374 {
375 return this._contentLength;
376 }
377 }
378
379 // Token: 0x170001AA RID: 426
380 // (get) Token: 0x06000811 RID: 2065 RVA: 0x0001C4B4 File Offset: 0x0001A6B4
382 {
383 get
384 {
386 DateTime dateTime;
387 return dateTime;
388 }
389 }
390
391 // Token: 0x170001AB RID: 427
392 // (get) Token: 0x06000812 RID: 2066 RVA: 0x0001C4CC File Offset: 0x0001A6CC
393 internal global::System.Uri ResponseUri
394 {
395 get
396 {
397 return this._responseUri;
398 }
399 }
400
401 // Token: 0x170001AC RID: 428
402 // (get) Token: 0x06000813 RID: 2067 RVA: 0x0001C4E0 File Offset: 0x0001A6E0
403 internal string BannerMessage
404 {
405 get
406 {
407 /*
408An exception occurred when decompiling this method (06000813)
409
410ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.FtpControlStream::get_BannerMessage()
411
412 ---> System.Exception: Basic block has to end with unconditional control flow.
413{
414 IL_0000:
415 brtrue(IL_0000, logicnot:bool(ldfld:StringBuilder[exp:bool](FtpControlStream::_bannerMessage, ldloc:FtpControlStream(this))))
416}
417
418 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
419 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
420 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
421 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
422 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
423 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
424 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
425 --- End of inner exception stack trace ---
426 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
427 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
428*/;
429 }
430 }
431
432 // Token: 0x170001AD RID: 429
433 // (get) Token: 0x06000814 RID: 2068 RVA: 0x0001C4F4 File Offset: 0x0001A6F4
434 internal string WelcomeMessage
435 {
436 get
437 {
438 /*
439An exception occurred when decompiling this method (06000814)
440
441ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.FtpControlStream::get_WelcomeMessage()
442
443 ---> System.Exception: Basic block has to end with unconditional control flow.
444{
445 IL_0000:
446 brtrue(IL_0000, logicnot:bool(ldfld:StringBuilder[exp:bool](FtpControlStream::_welcomeMessage, ldloc:FtpControlStream(this))))
447}
448
449 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
450 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
451 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
452 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
453 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
454 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
455 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
456 --- End of inner exception stack trace ---
457 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
458 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
459*/;
460 }
461 }
462
463 // Token: 0x170001AE RID: 430
464 // (get) Token: 0x06000815 RID: 2069 RVA: 0x0001C508 File Offset: 0x0001A708
465 internal string ExitMessage
466 {
467 get
468 {
469 /*
470An exception occurred when decompiling this method (06000815)
471
472ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.FtpControlStream::get_ExitMessage()
473
474 ---> System.Exception: Basic block has to end with unconditional control flow.
475{
476 IL_0000:
477 brtrue(IL_0000, logicnot:bool(ldfld:StringBuilder[exp:bool](FtpControlStream::_exitMessage, ldloc:FtpControlStream(this))))
478}
479
480 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
481 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
482 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
483 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
484 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
485 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
486 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
487 --- End of inner exception stack trace ---
488 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
489 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
490*/;
491 }
492 }
493
494 // Token: 0x06000816 RID: 2070 RVA: 0x0001C51C File Offset: 0x0001A71C
496 {
498 long num;
499 return num;
500 }
501
502 // Token: 0x06000817 RID: 2071 RVA: 0x0001C540 File Offset: 0x0001A740
504 {
505 /*
506An exception occurred when decompiling this method (06000817)
507
508ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime System.Net.FtpControlStream::GetLastModifiedFrom213Response(System.String)
509
510 ---> System.Exception: Basic block has to end with unconditional control flow.
511{
512 Block_0:
513 stloc:DateTime(var_0_06, ldfld:DateTime(FtpControlStream::_lastModified, ldloc:FtpControlStream(this)))
514 stloc:NumberFormatInfo(var_8_1A, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
515 stloc:int32(var_9_25, call:int32(Convert::ToInt32, ldloc:string(var_6), ldloc:NumberFormatInfo[exp:IFormatProvider](var_8_1A)))
516 stloc:NumberFormatInfo(var_14_35, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
517 stloc:int16(var_15_40, call:int16(Convert::ToInt16, ldloc:string(var_12), ldloc:NumberFormatInfo[exp:IFormatProvider](var_14_35)))
518 stloc:NumberFormatInfo(var_20_50, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
519 stloc:int16(var_21_5B, call:int16(Convert::ToInt16, ldloc:string(var_18), ldloc:NumberFormatInfo[exp:IFormatProvider](var_20_50)))
520 stloc:NumberFormatInfo(var_26_6B, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
521 stloc:int16(var_27_76, call:int16(Convert::ToInt16, ldloc:string(var_24), ldloc:NumberFormatInfo[exp:IFormatProvider](var_26_6B)))
522 stloc:NumberFormatInfo(var_32_87, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
523 stloc:int16(var_33_92, call:int16(Convert::ToInt16, ldloc:string(var_30), ldloc:NumberFormatInfo[exp:IFormatProvider](var_32_87)))
524 stloc:NumberFormatInfo(var_38_A3, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
525 stloc:int16(var_39_AE, call:int16(Convert::ToInt16, ldloc:string(var_36), ldloc:NumberFormatInfo[exp:IFormatProvider](var_38_A3)))
526 stloc:NumberFormatInfo(var_41_B8, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
527 stloc:int16(var_42_C2, call:int16(Convert::ToInt16, ldloc:string[][exp:string](var_3), ldloc:NumberFormatInfo[exp:IFormatProvider](var_41_B8)))
528}
529
530 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
531 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
532 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
533 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
534 --- End of inner exception stack trace ---
535 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
536 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
537*/;
538 }
539
540 // Token: 0x06000818 RID: 2072 RVA: 0x0001C618 File Offset: 0x0001A818
541 private void TryUpdateResponseUri(string str, FtpWebRequest request)
542 {
543 int num = str.IndexOf("for ");
544 int num2 = 40;
545 int num3 = str.LastIndexOf((char)num2);
546 int stringLength = str._stringLength;
547 string text2;
548 string text = text2.Replace("#", "%23");
549 long num4 = 0L;
550 string text3;
551 int stringLength2 = text3._stringLength;
552 char c = text3[(int)num4];
553 string text4 = text3 + "/";
554 global::System.Uri uri;
555 string[] segments = uri.Segments;
556 }
557
558 // Token: 0x06000819 RID: 2073 RVA: 0x0001C698 File Offset: 0x0001A898
559 private void TryUpdateContentLength(string str)
560 {
561 int num = str.LastIndexOf("(");
562 int num2 = str.IndexOf(" bytes).");
564 this._contentLength = " bytes).";
565 }
566
567 // Token: 0x0600081A RID: 2074 RVA: 0x0001C6D4 File Offset: 0x0001A8D4
568 private string GetLoginDirectory(string str)
569 {
570 int num = 34;
571 int num2 = str.IndexOf((char)num);
572 int num3 = 34;
573 long num4 = 0L;
574 int num5 = str.LastIndexOf((char)num3);
575 return str.Substring(num3, (int)num4);
576 }
577
578 // Token: 0x0600081B RID: 2075 RVA: 0x0001C704 File Offset: 0x0001A904
579 private int GetPortV4(string responseString)
580 {
581 /*
582An exception occurred when decompiling this method (0600081B)
583
584ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Net.FtpControlStream::GetPortV4(System.String)
585
586 ---> System.Exception: Basic block has to end with unconditional control flow.
587{
588 Block_0:
589 stloc:int64(var_2_03, ldc.i4:int64(0))
590 stloc:bool(var_3_0B, call:bool(char::IsNumber, ldloc:string(responseString), ldloc:int64[exp:int32](var_2_03)))
591 stloc:NumberFormatInfo(var_5_14, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
592 stloc:uint8(var_6_1E, call:uint8(Convert::ToByte, ldloc:string(responseString), ldloc:NumberFormatInfo[exp:IFormatProvider](var_5_14)))
593 stloc:NumberFormatInfo(var_8_28, callgetter:NumberFormatInfo(NumberFormatInfo::get_InvariantInfo))
594 stloc:uint8(var_9_32, call:uint8(Convert::ToByte, ldloc:string[][exp:string](var_1), ldloc:NumberFormatInfo[exp:IFormatProvider](var_8_28)))
595 stloc:string(var_10_40, call:string(SR::Format, ldstr:string("The response string '{0}' has invalid format."), ldloc:uint8[exp:object](var_6_1E)))
596}
597
598 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
599 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
600 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
601 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
602 --- End of inner exception stack trace ---
603 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
604 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
605*/;
606 }
607
608 // Token: 0x0600081C RID: 2076 RVA: 0x0001C754 File Offset: 0x0001A954
609 private int GetPortV6(string responseString)
610 {
611 int num = responseString.LastIndexOf("(");
612 int num2 = responseString.LastIndexOf(")");
614 return Convert.ToInt32(responseString, invariantInfo);
615 }
616
617 // Token: 0x0600081D RID: 2077 RVA: 0x0001C7A0 File Offset: 0x0001A9A0
619 {
620 if (base.Socket.LocalEndPoint != null)
621 {
622 }
623 global::System.Net.Sockets.Socket socket = base.Socket;
624 global::System.Net.Sockets.Socket socket2;
626 global::System.Net.Sockets.Socket dataSocket = this._dataSocket;
627 int num = 1;
628 dataSocket.Listen(num);
629 }
630
631 // Token: 0x0600081E RID: 2078 RVA: 0x0001C7EC File Offset: 0x0001A9EC
632 private string GetPortCommandLine(FtpWebRequest request)
633 {
634 if (this._dataSocket.LocalEndPoint != null)
635 {
636 }
637 if (base.ServerAddress._numbers == null)
638 {
639 string text;
640 return text;
641 }
642 if (base.ServerAddress._numbers != null)
643 {
644 string text2;
645 return text2;
646 }
647 }
648
649 // Token: 0x0600081F RID: 2079 RVA: 0x0001C82C File Offset: 0x0001AA2C
650 private string FormatFtpCommand(string command, string parameter)
651 {
652 /*
653An exception occurred when decompiling this method (0600081F)
654
655ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Net.FtpControlStream::FormatFtpCommand(System.String,System.String)
656
657 ---> System.Exception: Basic block has to end with unconditional control flow.
658{
659 IL_0017:
660 stloc:bool(var_3_1D, call:bool(string::IsNullOrEmpty, ldloc:string(parameter)))
661}
662
663 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
664 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
665 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
666 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
667 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
668 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
669 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
670 --- End of inner exception stack trace ---
671 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
672 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
673*/;
674 }
675
676 // Token: 0x06000820 RID: 2080 RVA: 0x0001C85C File Offset: 0x0001AA5C
677 protected global::System.Net.Sockets.Socket CreateFtpDataSocket(FtpWebRequest request, global::System.Net.Sockets.Socket templateSocket)
678 {
679 /*
680An exception occurred when decompiling this method (06000820)
681
682ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.Sockets.Socket System.Net.FtpControlStream::CreateFtpDataSocket(System.Net.FtpWebRequest,System.Net.Sockets.Socket)
683
684 ---> System.Exception: Basic block has to end with unconditional control flow.
685{
686 Block_0:
687 stloc:AddressFamily(var_0_06, ldfld:AddressFamily(Socket::addressFamily, ldloc:Socket(templateSocket)))
688 stloc:ProtocolType(var_1_0D, ldfld:ProtocolType(Socket::protocolType, ldloc:Socket(templateSocket)))
689 stloc:ProtocolType(var_2_14, ldfld:ProtocolType(Socket::protocolType, ldloc:Socket(templateSocket)))
690}
691
692 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
693 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
694 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
695 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
696 --- End of inner exception stack trace ---
697 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
698 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
699*/;
700 }
701
702 // Token: 0x06000821 RID: 2081 RVA: 0x0001C880 File Offset: 0x0001AA80
703 protected override bool CheckValid(ResponseDescription response, int validThrough, int completeLength)
704 {
705 if (!true)
706 {
707 }
710 if (statusBuffer == null || statusBuffer != null)
711 {
713 NetEventSource.Info(this, formattableString, "CheckValid");
714 int length = response.StatusBuffer.Length;
716 int status = response.Status;
717 validThrough.m_value = status;
718 bool multiline = response.Multiline;
719 if (multiline)
720 {
721 char[] chunkChars = statusBuffer2.m_ChunkChars;
722 string statusCodeString = response.StatusCodeString;
723 string text;
724 bool flag = text == statusCodeString;
725 }
726 if (!multiline)
727 {
728 }
729 char c;
730 bool flag2 = char.IsDigit(c);
731 if (!multiline)
732 {
733 }
734 char c2;
735 bool flag3 = char.IsDigit(c2);
736 if (!multiline)
737 {
738 }
739 char c3;
740 bool flag4 = char.IsDigit(c3);
741 string text2;
744 if (!multiline)
745 {
746 }
747 short num = Convert.ToInt16(text2, invariantInfo);
748 int num2 = 1;
750 }
751 throw new ArrayTypeMismatchException();
752 }
753
754 // Token: 0x06000822 RID: 2082 RVA: 0x0001C978 File Offset: 0x0001AB78
756 {
757 if (this._request != null)
758 {
759 }
760 return TriState.True;
761 }
762
763 // Token: 0x06000823 RID: 2083 RVA: 0x0001C990 File Offset: 0x0001AB90
764 // Note: this type is marked as 'beforefieldinit'.
766 {
767 }
768
769 // Token: 0x0400067C RID: 1660
770 private global::System.Net.Sockets.Socket _dataSocket;
771
772 // Token: 0x0400067D RID: 1661
774
775 // Token: 0x0400067E RID: 1662
777
778 // Token: 0x0400067F RID: 1663
780
781 // Token: 0x04000680 RID: 1664
783
784 // Token: 0x04000681 RID: 1665
786
787 // Token: 0x04000682 RID: 1666
789
790 // Token: 0x04000683 RID: 1667
791 private string _currentTypeSetting;
792
793 // Token: 0x04000684 RID: 1668
794 private long _contentLength;
795
796 // Token: 0x04000685 RID: 1669
798
799 // Token: 0x04000686 RID: 1670
801
802 // Token: 0x04000687 RID: 1671
803 private string _loginDirectory;
804
805 // Token: 0x04000688 RID: 1672
807
808 // Token: 0x04000689 RID: 1673
810
811 // Token: 0x0400068A RID: 1674
812 private global::System.Uri _responseUri;
813
814 // Token: 0x0400068B RID: 1675
816
817 // Token: 0x0400068C RID: 1676
819
820 // Token: 0x0400068D RID: 1677
821 internal string StatusLine;
822
823 // Token: 0x0400068E RID: 1678
825
826 // Token: 0x0400068F RID: 1679
828
829 // Token: 0x04000690 RID: 1680
831
832 // Token: 0x0200014B RID: 331
833 private enum GetPathOption
834 {
835 // Token: 0x04000692 RID: 1682
836 Normal,
837 // Token: 0x04000693 RID: 1683
839 // Token: 0x04000694 RID: 1684
841 }
842
843 // Token: 0x0200014C RID: 332
845 private sealed class <>c__DisplayClass31_0
846 {
847 // Token: 0x06000824 RID: 2084 RVA: 0x0001C9A4 File Offset: 0x0001ABA4
849 {
850 }
851
852 // Token: 0x06000825 RID: 2085 RVA: 0x0001C9B8 File Offset: 0x0001ABB8
854 {
855 this.tlsStream.EndAuthenticateAsClient(ar);
857 TlsStream tlsStream = this.tlsStream;
859 Stream stream = ftpControlStream.ContinueCommandPipeline();
860 }
861
862 // Token: 0x04000695 RID: 1685
864
865 // Token: 0x04000696 RID: 1686
866 public TlsStream tlsStream;
867 }
868 }
869}
class f__AnonymousType0<< Count > j__TPar
static short ToInt16(object value, IFormatProvider provider)
Definition Convert.cs:986
static int ToInt32(object value)
Definition Convert.cs:1412
static CultureInfo InvariantCulture
override CommandStream.PipelineInstruction PipelineCallback(CommandStream.PipelineEntry entry, ResponseDescription response, bool timeout, Stream stream)
static readonly AsyncCallback s_connectCallbackDelegate
static void ConnectCallback(IAsyncResult asyncResult)
override CommandStream.PipelineEntry[] BuildCommandsList(WebRequest req)
static void AcceptCallback(IAsyncResult asyncResult)
global::System.Net.Sockets.Socket CreateFtpDataSocket(FtpWebRequest request, global::System.Net.Sockets.Socket templateSocket)
global::System.Uri _responseUri
static void GetPathInfo(FtpControlStream.GetPathOption pathOption, global::System.Uri uri, [Out] string path, [Out] string directory, [Out] string filename)
DateTime GetLastModifiedFrom213Response(string str)
string FormatAddressV6(IPAddress address, int port)
static readonly AsyncCallback s_acceptCallbackDelegate
static void SSLHandshakeCallback(IAsyncResult asyncResult)
static readonly AsyncCallback s_SSLHandshakeCallback
long GetContentLengthFrom213Response(string responseString)
FtpControlStream(global::System.Net.Sockets.TcpClient client)
void TryUpdateContentLength(string str)
string GetPortCommandLine(FtpWebRequest request)
override bool CheckValid(ResponseDescription response, int validThrough, int completeLength)
int GetPortV6(string responseString)
void TryUpdateResponseUri(string str, FtpWebRequest request)
int GetPortV4(string responseString)
void CreateFtpListenerSocket(FtpWebRequest request)
CommandStream.PipelineInstruction QueueOrCreateFtpDataStream(Stream stream)
string GetLoginDirectory(string str)
CommandStream.PipelineInstruction QueueOrCreateDataConection(CommandStream.PipelineEntry entry, ResponseDescription response, bool timeout, Stream stream, [Out] bool isSocketReady)
global::System.Net.Sockets.Socket _dataSocket
string FormatAddress(IPAddress address, int Port)
string FormatFtpCommand(string command, string parameter)
static void Info(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static void Fail(object thisOrContextObject, FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static Encoding UTF8
Definition Encoding.cs:828
static Encoding Default
Definition Encoding.cs:728
StringBuilder Append(char value, int repeatCount)