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

Disassembly:
mov ecx, dword [0x631ebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x84]
cmp eax, dword [ecx + 8]
jbe 0x4d93e3
sub esp, 0x104
mov eax, 0
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov byte [esp + 0x2e], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov eax, dword [esp + 0x108]
mov dword [esp], eax
call sym.net._netFD_.init
mov eax, dword [esp + 4]
test eax, eax
jne 0x4d9369
lea edi, [esp + 0xb8]
xor eax, eax
call fcn.004663eb
mov ecx, dword [esp + 0x10c]
mov edx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x110]
mov dword [esp], ebx
call edx
movzx ecx, byte [esp + 0x18]
mov byte [esp + 0x2d], cl
lea edi, [esp + 0xb8]
lea esi, [esp + 4]
call fcn.004668ce
lea edi, [esp + 0xa4]
lea esi, [esp + 0xb8]
call fcn.004668ce
movzx ecx, byte [esp + 0x2d]
test cl, cl
je 0x4d8bbf
lea edi, [esp + 0x90]
lea esi, [esp + 0xb8]
call fcn.004668ce
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
test eax, 0x80000000
je 0x4d8ae9
shl eax, 1
mov ebp, ecx
shl ecx, 1
mov edx, ebp
shr ebp, 0x1f
or eax, ebp
mov ebp, eax
shl eax, 1
shr ecx, 0x1f
or ecx, eax
shr ebp, 0x1f
add ecx, 0xd7b17f80
adc ebp, 0xd
jmp 0x4d8afb
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
mov edx, ecx
mov ecx, eax
test ecx, ecx
sete al
test ebp, ebp
sete cl
and ecx, eax
test cl, cl
je 0x4d8b21
test edx, 0x3fffffff
jne 0x4d8b21
mov eax, dword [esp + 0x108]
xor ecx, ecx
jmp 0x4d8bc8
mov eax, dword [esp + 0x108]
test byte [eax], al
lea edi, [esp + 0x7c]
lea esi, [esp + 0xa4]
call fcn.004668ce
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0x7c]
call fcn.004668ce
mov dword [esp + 0x18], 0x77
call sym.internal_poll.setDeadlineImpl
lea edi, [esp + 0xcc]
lea esi, [0x60d0f0]
call fcn.004668ce
lea edi, [esp + 0xe0]
xor eax, eax
call fcn.004663e9
lea eax, [sym.net._netFD_.connect.func3]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0xe4], eax
lea edi, [esp + 0xe8]
lea esi, [esp + 0xcc]
call fcn.004668ce
lea ecx, [esp + 0xe0]
mov dword [esp + 0x100], ecx
mov byte [esp + 0x2e], 1
mov ecx, 1
jmp 0x4d8bc8
mov eax, dword [esp + 0x108]
xor ecx, ecx
mov byte [esp + 0x2f], cl
mov ebp, dword [eax + 0x144]
mov edx, dword [eax + 0x140]
cmp ebp, 3
jne 0x4d8bf3
cmp word [edx], 0x6374
jne 0x4d9290
cmp byte [edx + 2], 0x70
je 0x4d8c10
jmp 0x4d9290
cmp ebp, 4
jne 0x4d9290
cmp dword [edx], 0x34706374
je 0x4d8c10
cmp dword [edx], 0x36706374
jne 0x4d9290
mov ebp, dword [esp + 0x114]
test ebp, ebp
jne 0x4d8cb1
mov edx, dword [esp + 0x11c]
test edx, edx
je 0x4d93be
mov ebx, dword [esp + 0x11c]
lea ebp, [0x558af0]
cmp ebx, ebp
jne 0x4d8c59
lea eax, [0x516f80]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
lea ecx, [0x558af0]
jmp 0x4d8c7f
lea esi, [0x558b04]
cmp ebx, esi
jne 0x4d93be
lea eax, [0x518e60]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
lea ecx, [0x558b04]
mov edx, dword [esp + 0x108]
mov ebx, dword [edx + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.syscall.Bind
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4d91ed
mov eax, dword [esp + 0x108]
movzx ecx, byte [esp + 0x2f]
mov ebp, dword [esp + 0x11c]
test ebp, ebp
je 0x4d93a6
mov ebp, dword [esp + 0x11c]
mov edx, eax
lea eax, [0x558af0]
cmp ebp, eax
jne 0x4d8ce3
mov eax, dword [esp + 0x120]
cmp byte [eax + 4], 0x7f
sete al
jmp 0x4d8d44
lea eax, [0x558b04]
cmp ebp, eax
jne 0x4d93a6
mov ebx, dword [0x605714]
cmp ebx, 0x10
jb 0x4d939c
mov esi, dword [0x605710]
lea edi, [esp + 0x40]
call fcn.004668d8
mov eax, dword [esp + 0x120]
test byte [eax], al
add eax, 8
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
movzx ecx, byte [esp + 0x2f]
mov edx, dword [esp + 0x108]
test al, al
je 0x4d8dc2
mov word [esp + 0x30], 0xffff
mov byte [esp + 0x32], 1
mov edx, dword [0x60cd10]
mov eax, dword [edx]
call eax
movzx eax, byte [esp]
test al, al
je 0x4d8d6b
mov byte [esp + 0x32], 0xfe
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x108]
mov dword [esp], eax
mov dword [esp + 4], 0x98000011
lea ecx, [esp + 0x30]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call sym.internal_poll._FD_.WSAIoctl
lea eax, [0x508780]
mov dword [esp], eax
mov dword [esp + 4], 0
call sym.runtime.makechan
mov eax, dword [esp + 8]
mov dword [esp + 0x68], eax
movzx ecx, byte [esp + 0x2f]
or ecx, 2
mov byte [esp + 0x2f], cl
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea edx, [sym.net._netFD_.connect.func1]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
lea edx, [esp + 0x74]
mov dword [esp + 0xfc], edx
mov byte [esp + 0x2e], cl
lea edx, [0x5151e0]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
lea ecx, [sym.net._netFD_.connect.func2]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10c]
mov dword [eax + 4], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d8e5b
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x108]
mov ebx, dword [esp + 0x68]
jmp 0x4d8e7a
call sym.runtime.gcWriteBarrier3
mov ecx, dword [esp + 0x110]
mov dword [edi], ecx
mov edx, dword [esp + 0x108]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x68]
mov dword [edi + 8], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov dword [esp], eax
call sym.runtime.newproc
mov eax, dword [esp + 0x108]
mov dword [esp], eax
mov ecx, dword [esp + 0x11c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 8], ecx
call sym.internal_poll._FD_.ConnectEx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x4d90e9
mov dword [esp + 0x5c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x10c]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x110]
mov dword [esp], edx
call ecx
mov dword [esp], 0
call sym.runtime.selectnbrecv
movzx eax, byte [esp + 8]
test al, al
jne 0x4d8fca
mov eax, dword [esp + 0x70]
lea ecx, [0x558a64]
cmp eax, ecx
jne 0x4d8f5b
lea eax, [0x5128a0]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 9
lea ecx, [0x528ae1]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d8f45
mov ecx, dword [esp + 0x5c]
jmp 0x4d8f50
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x5c]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x558a78]
jmp 0x4d8f63
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], eax
movzx eax, byte [esp + 0x2f]
test al, 2
je 0x4d8fac
and eax, 0xfffffffd
mov byte [esp + 0x2f], al
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0xfc]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2f]
test al, 1
je 0x4d8fc3
and eax, 0xfffffffe
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0x100]
mov eax, dword [edx]
call eax
add esp, 0x104
ret
mov eax, dword [esp + 0x10c]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x110]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 8]
cmp dword [0x605488], eax
jne 0x4d9045
mov dword [esp + 0x50], ebx
mov dword [esp + 0x6c], eax
mov ecx, dword [0x60548c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x4d9035
lea ecx, [0x558b7c]
lea edx, [0x631d80]
jmp 0x4d9082
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
cmp dword [0x605490], eax
jne 0x4d9082
mov ecx, dword [0x605494]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x4d907a
mov ecx, dword [0x6053a8]
mov edx, dword [0x6053ac]
jmp 0x4d9082
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], edx
movzx eax, byte [esp + 0x2f]
test al, 2
je 0x4d90cb
and eax, 0xfffffffd
mov byte [esp + 0x2f], al
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0xfc]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2f]
test al, 1
je 0x4d90e2
and eax, 0xfffffffe
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0x100]
mov eax, dword [edx]
call eax
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], 0xffff
mov dword [esp + 8], 0x7010
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
call sym.syscall.Setsockopt
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4d9128
xor eax, eax
xor ecx, ecx
jmp 0x4d9186
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
lea edx, [0x5128a0]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xa
lea ecx, [0x528dce]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d9170
mov ecx, dword [esp + 0x54]
jmp 0x4d917b
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x54]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
mov ecx, eax
lea eax, [0x558a78]
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], ecx
movzx eax, byte [esp + 0x2f]
test al, 2
je 0x4d91cf
and eax, 0xfffffffd
mov byte [esp + 0x2f], al
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0xfc]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x2f]
test al, 1
je 0x4d91e6
and eax, 0xfffffffe
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0x100]
mov eax, dword [edx]
call eax
add esp, 0x104
ret
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
lea edx, [0x5128a0]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x52809b]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d9235
mov ecx, dword [esp + 0x60]
jmp 0x4d9240
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x60]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
lea ecx, [0x558a78]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], eax
movzx eax, byte [esp + 0x2f]
test al, 1
je 0x4d9289
and eax, 0xfffffffe
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0x100]
mov eax, dword [edx]
call eax
add esp, 0x104
ret
mov edx, dword [0x6050a8]
mov ecx, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 8], eax
call ecx
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4d92c4
xor eax, eax
xor ecx, ecx
jmp 0x4d9322
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x64], ecx
lea edx, [0x5128a0]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [eax + 4], 7
lea ecx, [0x528401]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [0x631fe0]
test ecx, ecx
jne 0x4d930c
mov ecx, dword [esp + 0x64]
jmp 0x4d9317
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
mov ecx, eax
lea eax, [0x558a78]
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], ecx
movzx eax, byte [esp + 0x2f]
test al, 1
je 0x4d9362
and eax, 0xfffffffe
mov byte [esp + 0x2e], al
mov edx, dword [esp + 0x100]
mov eax, dword [edx]
call eax
add esp, 0x104
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], ecx
add esp, 0x104
ret
mov edx, 0x10
call sym.runtime.panicSliceConvert
lea eax, [0x50b280]
mov dword [esp], eax
lea eax, [0x558868]
mov dword [esp + 4], eax
call sym.runtime.gopanic
lea eax, [0x50b280]
mov dword [esp], eax
lea eax, [0x558868]
mov dword [esp + 4], eax
call sym.runtime.gopanic
nop
call sym.runtime.deferreturn
add esp, 0x104
ret
call sym.runtime.morestack_noctxt
jmp sym.net._netFD_.connect