Function at 0x4c7bc2
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x148], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x120], 0xffffffff
mov dword [ebp - 0x130], 0xffffffff
lea eax, [ebp - 0x90]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x12c], 0xffffffff
mov dword [ebp - 0x128], 2
mov dword [ebp - 0x124], 0x10
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
lea eax, [ebp - 0x90]
mov dword [esp], eax
call sub.msvcrt.dll_memset
cmp dword [ebp - 0x144], 0
jne 0x4c7c9b
cmp dword [ebp - 0x13c], 1
je 0x4c7ca5
mov eax, 0xffffd8c1
jmp 0x4c7f62
cmp dword [ebp - 0x148], 0
jne 0x4c7cb8
mov eax, 0xffffffea
jmp 0x4c7f62
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call fcn.004c7992
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x4c7d40
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x273b
jne 0x4c7d2a
mov dword [ebp - 0x128], 0x17
mov dword [ebp - 0x124], 0x1c
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call fcn.004c7992
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x4c7d40
mov eax, dword [ebp - 0x114]
neg eax
jmp 0x4c7f62
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x4c7ee1
mov dword [ebp - 0x138], pe_nt_image_headers32
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x138]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x11c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_getsockname]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4c7ee4
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0x124], eax
jne 0x4c7ece
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x120]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x11c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4c7ee7
mov dword [ebp - 0x138], pe_nt_image_headers32
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x138]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x118]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_accept]
call eax
sub esp, 0xc
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
je 0x4c7eea
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0x124], eax
jne 0x4c7ed1
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x138]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x11c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_getsockname]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4c7eed
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [esp], eax
call fcn.004c7ace
test eax, eax
je 0x4c7ed4
mov eax, dword [ebp - 0x134]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x120]
mov dword [eax], edx
mov eax, dword [ebp - 0x148]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x130]
mov dword [edx], eax
mov eax, 0
jmp 0x4c7f62
nop
jmp 0x4c7ed5
nop
jmp 0x4c7ed5
nop
mov dword [ebp - 0x12c], 0x2745
jmp 0x4c7eee
nop
jmp 0x4c7eee
nop
jmp 0x4c7eee
nop
jmp 0x4c7eee
nop
jmp 0x4c7eee
nop
cmp dword [ebp - 0x12c], 0
jns 0x4c7f06
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x134], 0xffffffff
je 0x4c7f22
mov eax, dword [ebp - 0x134]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
cmp dword [ebp - 0x120], 0xffffffff
je 0x4c7f3e
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
cmp dword [ebp - 0x130], 0xffffffff
je 0x4c7f5a
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [ebp - 0x12c]
neg eax
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x4c7f72
call sub.libssp_0.dll___stack_chk_fail
leave
ret