Function at 0x5a6940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x8ef630]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x5a6cc2
sub esp, 0x8c
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x5a698e
mov edx, dword [eax + 0x58]
test edx, edx
je 0x5a698e
lea edx, [sym.net._sysDialer_.doDialTCPProto.func1]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 0x64]
mov ebx, dword [eax + 0x68]
mov ebp, dword [esp + 0x94]
mov dword [esp], ebp
mov esi, dword [esp + 0x98]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
lea edx, [0x743a54]
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 1
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x24], edi
lea edi, [0x6d589a]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], ecx
call sym.net.internetSocket
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
jmp 0x5a6ae6
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x68]
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
lea ecx, [0x743a54]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebp
lea edx, [0x6d589a]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 4
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x30], edx
call sym.net.internetSocket
mov eax, dword [esp + 0x44]
inc eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
mov ebp, esi
mov esi, edi
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x44]
cmp ebx, 2
jge 0x5a6bdd
test edi, edi
je 0x5a6b11
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x5a6b11
mov ebx, dword [esp + 0x44]
xor ebx, ebx
mov byte [esp + 0x43], bl
mov ebx, dword [esp + 0x44]
jmp 0x5a6beb
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x48], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call sym.net.selfConnect
movzx eax, byte [esp + 0xc]
test al, al
je 0x5a6b4b
mov eax, dword [esp + 0x48]
lea ecx, [0x742730]
mov ebx, dword [esp + 0x78]
mov edx, 1
jmp 0x5a6bb6
mov eax, dword [esp + 0x48]
lea ecx, [0x742520]
cmp eax, ecx
jne 0x5a6b65
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
jmp 0x5a6b6d
mov ebx, dword [esp + 0x78]
mov ebp, eax
mov edx, ebx
lea ecx, [0x742590]
cmp ebp, ecx
jne 0x5a6b7d
mov ebp, dword [edx + 8]
mov edx, dword [edx + 0xc]
lea ecx, [0x742730]
cmp ebp, ecx
je 0x5a6b8b
xor edx, edx
jmp 0x5a6bb6
mov dword [esp], ebp
mov dword [esp + 4], edx
lea eax, [0x741750]
mov dword [esp + 8], eax
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
lea ecx, [0x742730]
mov ebx, dword [esp + 0x78]
mov edx, eax
mov eax, dword [esp + 0x48]
mov ecx, eax
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
mov byte [esp + 0x43], dl
mov eax, dword [esp + 0x74]
mov edx, ebx
mov ebx, dword [esp + 0x44]
jmp 0x5a6beb
mov dword [esp + 0x4c], eax
xor eax, eax
mov byte [esp + 0x43], al
mov eax, dword [esp + 0x4c]
movzx ebx, byte [esp + 0x43]
test bl, bl
je 0x5a6c1e
test ecx, ecx
jne 0x5a6a3f
mov dword [esp], eax
call sym.net._netFD_.Close
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
jmp 0x5a6a3f
test ecx, ecx
je 0x5a6c42
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x30]
mov ebx, dword [ecx + 0x34]
lea esi, [ecx + 0x38]
lea edi, [esp + 0x5c]
call fcn.004721d4
mov ecx, dword [0x8c80bc]
mov dword [esp + 0x80], ecx
mov ebp, dword [0x8c80c0]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
lea esi, [esp + 0x5c]
call fcn.004721d4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
call sym.net.newTCPConn
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x8c
ret
call sym.runtime.morestack_noctxt
jmp sym.net._sysDialer_.doDialTCPProto