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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a96fc
sub esp, 0x64
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x68]
movzx eax, byte [eax]
test al, al
jne 0x4a96aa
mov eax, dword [0x573194]
mov dword [esp], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
call dbg.runtime.chansend1
mov dword [esp], 0
lea eax, [0x4f2ed8]
mov dword [esp + 4], eax
call dbg.runtime.deferproc
test eax, eax
jne 0x4a96a0
mov ecx, dword [esp + 0x78]
cmp ecx, 4
jge 0x4a962e
jne 0x4a9628
mov edx, dword [esp + 0x74]
mov ebx, dword [edx]
cmp ebx, 0x34706374
jne 0x4a960e
mov eax, 1
mov dword [esp + 0x24], eax
lea edi, [esp + 0x44]
xor eax, eax
call fcn.0044b788
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 4], edx
call dbg.syscall.StringToUTF16Ptr
mov ecx, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], ecx
call dbg.syscall.GetAddrInfoW
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4a934e
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0xc], ebx
call dbg.net.lookupPortMap
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4a9327
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a92a4
mov ecx, dword [eax + 4]
lea edx, [0x4d7320]
cmp edx, ecx
jne 0x4a92a4
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
cmp edx, 0x2af9
jne 0x4a92a4
mov eax, dword [0x57359c]
mov ecx, dword [0x573598]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x40], ecx
lea edx, [0x4dc0c0]
mov dword [esp], edx
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0x583e20]
test ecx, ecx
jne 0x4a928f
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [esp], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
lea eax, [0x4e9d5d]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
call dbg.runtime.concatstring3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [edx + 0xc], eax
mov eax, dword [0x583e20]
lea ebx, [edx + 8]
test eax, eax
jne 0x4a927d
mov dword [edx + 8], ecx
mov dword [esp + 0x84], 0
lea eax, [0x500cf0]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov edx, dword [esp + 0x3c]
jmp 0x4a9254
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
jmp 0x4a91f4
lea eax, [0x4d4fe0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov dword [eax + 4], 0xc
mov ecx, dword [0x583e20]
test ecx, ecx
jne 0x4a930f
lea ecx, [0x4eb2fc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [0x583e20]
lea edx, [eax + 0xc]
test ecx, ecx
jne 0x4a92f9
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
lea ecx, [0x500d70]
jmp 0x4a91ab
mov dword [esp], edx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x38]
jmp 0x4a92ee
mov dword [esp], eax
lea ecx, [0x4eb2fc]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x38]
jmp 0x4a92d3
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp], 4
lea eax, [0x4f3150]
mov dword [esp + 4], eax
call dbg.runtime.deferproc
test eax, eax
jne 0x4a9604
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a9507
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp eax, 2
je 0x4a94ce
cmp eax, 0x17
je 0x4a9495
mov dword [esp], 0x20000027
call dbg.syscall.Errno.Error
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
lea edx, [0x4dc0c0]
mov dword [esp], edx
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0x583e20]
test ecx, ecx
jne 0x4a9480
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [esp], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
lea eax, [0x4e9d5d]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
call dbg.runtime.concatstring3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [edx + 0xc], eax
mov eax, dword [0x583e20]
lea ebx, [edx + 8]
test eax, eax
jne 0x4a946e
mov dword [edx + 8], ecx
mov dword [esp + 0x84], 0
lea eax, [0x500cf0]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov edx, dword [esp + 0x3c]
jmp 0x4a9445
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
jmp 0x4a93e5
movzx eax, word [ecx + 2]
mov word [esp], ax
call dbg.syscall.Ntohs
movzx eax, word [esp + 4]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
movzx eax, word [ecx + 2]
mov word [esp], ax
call dbg.syscall.Ntohs
movzx eax, word [esp + 4]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
mov dword [esp], 0x20000027
call dbg.syscall.Errno.Error
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x40], ecx
lea edx, [0x4dc0c0]
mov dword [esp], edx
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0x583e20]
test ecx, ecx
jne 0x4a95ef
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [esp], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
lea eax, [0x4e9d5d]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
call dbg.runtime.concatstring3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov dword [edx + 0xc], eax
mov eax, dword [0x583e20]
lea ebx, [edx + 8]
test eax, eax
jne 0x4a95dd
mov dword [edx + 8], ecx
mov dword [esp + 0x84], 0
lea eax, [0x500cf0]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov edx, dword [esp + 0x3c]
jmp 0x4a95b4
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
jmp 0x4a9554
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
cmp ecx, 4
jne 0x4a9621
mov ebx, dword [edx]
cmp ebx, 0x36706374
je 0x4a90b2
xor eax, eax
jmp 0x4a90b7
mov edx, dword [esp + 0x74]
jmp 0x4a9611
je 0x4a9661
jne 0x4a965b
mov edx, dword [esp + 0x74]
mov ebx, dword [edx]
cmp ebx, 0x34706475
jne 0x4a964a
mov eax, 2
jmp 0x4a90b7
cmp ecx, 4
jne 0x4a9621
mov ebx, dword [edx]
cmp ebx, 0x36706475
je 0x4a9640
jmp 0x4a9621
mov edx, dword [esp + 0x74]
jmp 0x4a964d
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x4ea094]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call dbg.runtime.cmpstring
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4a9697
mov ecx, dword [esp + 0x78]
cmp ecx, 4
jmp 0x4a909a
mov ecx, dword [esp + 0x78]
cmp ecx, 4
jmp 0x4a9630
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
call dbg.net.lookupPortMap
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
call dbg.runtime.morestack_noctxt
jmp dbg.net.(*Resolver).lookupPort