Function at 0x42cc80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push esi
push edi
lea edi, [ebp - 0x1b4]
mov ecx, 0x6d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c83a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x90], 2
jne 0x42ccc3
jmp 0x42cee8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x284]
shr ecx, 1
and ecx, 1
jne 0x42cedc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x284]
shr eax, 0x1b
and eax, 1
jne 0x42cedc
mov dword [ebp - 0xc], 0x80
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_getpeername]
cmp esi, esp
call fcn.00485c0f
test eax, eax
je 0x42cd66
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
mov dword [ebp - 0x1b0], eax
push 0x80
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.00471b20
add esp, 0xc
push eax
mov eax, dword [ebp - 0x1b0]
push eax
push str.getpeername___failed_with_errno__d:__s
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.0042abc0
add esp, 0x10
jmp 0x42cee8
mov dword [ebp - 0xc], 0x80
push 0x80
push 0
lea edx, [ebp - 0x11c]
push edx
call fcn.00487550
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.00485c0f
test eax, eax
je 0x42cdf6
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
mov dword [ebp - 0x1b4], eax
push 0x80
lea eax, [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.00471b20
add esp, 0xc
push eax
mov edx, dword [ebp - 0x1b4]
push edx
push str.getsockname___failed_with_errno__d:__s
mov eax, dword [ebp - 0x124]
push eax
call fcn.0042abc0
add esp, 0x10
jmp 0x42cee8
mov ecx, dword [ebp + 8]
add ecx, 0x138
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10a
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.0042e660
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x42ce5e
push 0x80
lea edx, [ebp - 0x1a8]
push edx
call fcn.0049451b
mov eax, dword [eax]
push eax
call fcn.00471b20
add esp, 0xc
push eax
call fcn.0049451b
mov ecx, dword [eax]
push ecx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
mov edx, dword [ebp - 0x124]
push edx
call fcn.0042abc0
add esp, 0x10
jmp 0x42cee8
push 0x2e
mov eax, dword [ebp + 8]
add eax, 0x10a
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x5c
push ecx
call fcn.004876b0
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 0x16c
push edx
mov eax, dword [ebp + 8]
add eax, 0x13c
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0042e660
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x42cedc
push 0x80
lea eax, [ebp - 0x1a8]
push eax
call fcn.0049451b
mov ecx, dword [eax]
push ecx
call fcn.00471b20
add esp, 0xc
push eax
call fcn.0049451b
mov edx, dword [eax]
push edx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
mov eax, dword [ebp - 0x124]
push eax
call fcn.0042abc0
add esp, 0x10
jmp 0x42cee8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042cf70
add esp, 4
push edx
mov ecx, ebp
push eax
lea edx, [0x42cf18]
call fcn.00485bbb
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004854a8
add esp, 0x1b4
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret