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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
push 0x10
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004976c0
add esp, 0xc
mov word [ebp - 0x18], 2
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x4d1381
mov dword [ebp - 0x14], 0
push str.localhost
call fcn.0045d441
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x4d139b
call fcn.0047e95d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x4d1554
cmp dword [ebp + 0x10], 0
jne 0x4d13da
cmp dword [ebp + 0x14], 0
je 0x4d13da
push 0x5092f4
mov edx, dword [ebp + 0x14]
push edx
call sub.WSOCK32.dll_getservbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4d13d0
call fcn.0047e95d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x4d1554
mov edx, dword [ebp - 4]
movsx eax, word [edx + 8]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0xffff
jne 0x4d13ea
mov dword [ebp + 0x10], 0
mov cx, word [ebp + 0x10]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x16], ax
push 0x50934c
call sub.WSOCK32.dll_getprotobyname
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4d141d
call fcn.0047e95d
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
xor eax, eax
jmp 0x4d1554
mov eax, dword [ebp - 0x1c]
movsx ecx, word [eax + 8]
push ecx
push 1
movsx edx, word [ebp - 0x18]
push edx
call sub.WSOCK32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x4d144c
call fcn.0047e95d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x4d1554
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d162a
add esp, 8
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4d148e
call fcn.0047e95d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
push edx
call fcn.004d15a2
add esp, 4
xor eax, eax
jmp 0x4d1554
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x4d14c1
call fcn.0047e95d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
push edx
call fcn.004d15a2
add esp, 4
xor eax, eax
jmp 0x4d1554
cmp dword [ebp + 0x10], 0
jne 0x4d14d9
mov ax, word [ebp - 0x16]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x4d153d
mov dword [ebp - 0x34], 0x10
push 0x10
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.004976c0
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.WSOCK32.dll_getsockname
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4d152b
call fcn.0047e95d
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004d15a2
add esp, 4
xor eax, eax
jmp 0x4d1554
mov cx, word [ebp - 0x2e]
push ecx
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [ebp + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, 1
mov esp, ebp
pop ebp
ret