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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b067c
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 0x4b062a
mov eax, dword [0x5c91b0]
mov dword [esp], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
call dbg.runtime.chansend1
mov dword [esp], 0
lea eax, [0x52eb0c]
mov dword [esp + 4], eax
call dbg.runtime.deferproc
test eax, eax
jne 0x4b0620
mov ecx, dword [esp + 0x78]
cmp ecx, 4
jge 0x4b05ae
jne 0x4b05a8
mov edx, dword [esp + 0x74]
mov ebx, dword [edx]
cmp ebx, 0x34706374
jne 0x4b058e
mov eax, 1
mov dword [esp + 0x24], eax
lea edi, [esp + 0x44]
xor eax, eax
call fcn.0044ad18
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 0x4b02ce
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 0x4b02a7
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4b0224
mov ecx, dword [eax + 4]
lea edx, [0x50eac0]
cmp edx, ecx
jne 0x4b0224
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
cmp edx, 0x2af9
jne 0x4b0224
mov eax, dword [0x5c95d4]
mov ecx, dword [0x5c95d0]
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, [0x5145c0]
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 [0x5d9ed0]
test ecx, ecx
jne 0x4b020f
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, [0x5249de]
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 [0x5d9ed0]
lea ebx, [edx + 8]
test eax, eax
jne 0x4b01fd
mov dword [edx + 8], ecx
mov dword [esp + 0x84], 0
lea eax, [0x53f920]
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 0x4b01d4
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
jmp 0x4b0174
lea eax, [0x50c120]
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 [0x5d9ed0]
test ecx, ecx
jne 0x4b028f
lea ecx, [0x526358]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [0x5d9ed0]
lea edx, [eax + 0xc]
test ecx, ecx
jne 0x4b0279
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
lea ecx, [0x53fa40]
jmp 0x4b012b
mov dword [esp], edx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x38]
jmp 0x4b026e
mov dword [esp], eax
lea ecx, [0x526358]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x38]
jmp 0x4b0253
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, [0x52ed84]
mov dword [esp + 4], eax
call dbg.runtime.deferproc
test eax, eax
jne 0x4b0584
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b0487
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp eax, 2
je 0x4b044e
cmp eax, 0x17
je 0x4b0415
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, [0x5145c0]
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 [0x5d9ed0]
test ecx, ecx
jne 0x4b0400
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, [0x5249de]
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 [0x5d9ed0]
lea ebx, [edx + 8]
test eax, eax
jne 0x4b03ee
mov dword [edx + 8], ecx
mov dword [esp + 0x84], 0
lea eax, [0x53f920]
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 0x4b03c5
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
jmp 0x4b0365
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, [0x5145c0]
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 [0x5d9ed0]
test ecx, ecx
jne 0x4b056f
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, [0x5249de]
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 [0x5d9ed0]
lea ebx, [edx + 8]
test eax, eax
jne 0x4b055d
mov dword [edx + 8], ecx
mov dword [esp + 0x84], 0
lea eax, [0x53f920]
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 0x4b0534
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call dbg.runtime.writebarrierptr
jmp 0x4b04d4
nop
call dbg.runtime.deferreturn
add esp, 0x64
ret
cmp ecx, 4
jne 0x4b05a1
mov ebx, dword [edx]
cmp ebx, 0x36706374
je 0x4b0032
xor eax, eax
jmp 0x4b0037
mov edx, dword [esp + 0x74]
jmp 0x4b0591
je 0x4b05e1
jne 0x4b05db
mov edx, dword [esp + 0x74]
mov ebx, dword [edx]
cmp ebx, 0x34706475
jne 0x4b05ca
mov eax, 2
jmp 0x4b0037
cmp ecx, 4
jne 0x4b05a1
mov ebx, dword [edx]
cmp ebx, 0x36706475
je 0x4b05c0
jmp 0x4b05a1
mov edx, dword [esp + 0x74]
jmp 0x4b05cd
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x524df1]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call dbg.runtime.cmpstring
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4b0617
mov ecx, dword [esp + 0x78]
cmp ecx, 4
jmp 0x4b001a
mov ecx, dword [esp + 0x78]
cmp ecx, 4
jmp 0x4b05b0
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