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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f4704
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 8], edx
call dbg.net.sysSocket
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4f46e7
mov dword [esp + 0x24], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x6c]
mov byte [esp + 0xc], bl
call dbg.net.setDefaultSockopts
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4f46a9
lea eax, [0x62c7a0]
mov dword [esp], eax
call dbg.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x64]
cmp ecx, 1
sete dl
mov byte [eax + 0xfd], dl
cmp ecx, 2
je 0x4f46a2
cmp ecx, 3
setne dl
mov dword [esp + 0x28], eax
mov byte [eax + 0xfe], dl
mov edx, dword [esp + 0x60]
mov dword [eax + 0x104], edx
mov dword [eax + 0x108], ecx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0x114], edx
mov edx, dword [0x79b700]
lea ebx, [eax + 0x110]
test edx, edx
jne 0x4f4685
mov edx, dword [esp + 0x58]
mov dword [eax + 0x110], edx
mov edx, dword [esp + 0x70]
test edx, edx
je 0x4f467c
mov ebx, dword [esp + 0x78]
test ebx, ebx
je 0x4f455a
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
call dbg.net.(*netFD).dial
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4f4535
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dbg.net.(*netFD).Close
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x4c
ret
cmp ecx, 1
jne 0x4f45eb
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
mov ecx, dword [0x79b4b4]
mov dword [esp + 0xc], ecx
call dbg.net.(*netFD).listenStream
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4f45c6
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dbg.net.(*netFD).Close
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x88], eax
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x4c
ret
cmp ecx, 2
je 0x4f45fe
cmp ecx, 5
je 0x4f4563
jmp 0x4f44c0
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
call dbg.net.(*netFD).listenDatagram
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4f4657
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dbg.net.(*netFD).Close
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x4c
ret
mov ebx, dword [esp + 0x78]
jmp 0x4f44c0
mov dword [esp], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call dbg.runtime.writebarrierptr
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
jmp 0x4f44a8
xor edx, edx
jmp 0x4f4466
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov edx, dword [0x7830e8]
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov eax, dword [edx]
call eax
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x88], eax
add esp, 0x4c
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ecx
add esp, 0x4c
ret
call dbg.runtime.morestack_noctxt
jmp dbg.net.socket