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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d8c42
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0
je 0x4d89a2
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x308]
call dword [ebx + 0x304]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x278]
mov edx, dword [0x5bc024]
mov edx, dword [edx]
call fcn.00404028
jne 0x4d89f7
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
push eax
call sub.wsock32.dll_getsockname
push dword [ebp - 0x20]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00409b54
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004d464c
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f8]
mov eax, dword [eax + 0x22c]
push eax
call sub.wsock32.dll_getsockname
lea eax, [ebp - 0x28]
push eax
mov bx, word [ebp - 0x22]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
shr bx, 8
movzx eax, bx
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x38]
mov ecx, 1
mov eax, 0x4d8c5c
call fcn.0040a09c
mov eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x278]
mov ecx, 0x4d8c6c
mov edx, 0x4d8c78
call fcn.0046724c
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00403f64
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x352]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov byte [eax + 0x352], 0
xor edx, edx
push ebp
push 0x4d8c15
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32f], 0
je 0x4d8af6
lea edx, [ebp - 0x28]
mov eax, 0x4d1d5c
call fcn.00405c9c
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00403f20
mov ecx, dword [ebp - 0x28]
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.005ac7c4
mov edx, 0x4d8c84
mov eax, dword [ebp - 4]
call fcn.005a96e4
push 1
push 1
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004d473c
jmp 0x4d8b1f
push 0
push 1
lea edx, [ebp - 0x28]
mov eax, 0x4d1d5c
call fcn.00405c9c
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00403f20
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004d473c
mov eax, dword [ebp - 4]
cmp word [eax + 0x1e4], 0
jne 0x4d8b36
call fcn.004037b0
jmp 0x4d8c1c
mov eax, dword [ebp - 4]
cmp word [eax + 0x1e4], 0x226
jne 0x4d8bad
lea edx, [ebp - 0x28]
mov eax, 0x4d1dbc
call fcn.00405c9c
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x224]
call fcn.00404200
test eax, eax
jle 0x4d8bad
push 0
push 1
lea edx, [ebp - 0x28]
mov eax, 0x4d1dbc
call fcn.00405c9c
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004d473c
push 0
push 1
lea edx, [ebp - 0x28]
mov eax, 0x4d1d5c
call fcn.00405c9c
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00403f20
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004d473c
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x1e4]
cmp ax, 0xc8
je 0x4d8bcf
cmp ax, 0xe2
je 0x4d8bcf
cmp ax, 0x1f4
jge 0x4d8bcf
cmp ax, 0x1a5
jne 0x4d8bd5
cmp ax, 0x226
jne 0x4d8be2
mov edx, 0xf
mov eax, dword [ebp - 4]
call fcn.004db41c
mov eax, dword [ebp - 4]
cmp word [eax + 0x1e4], 0x18f
jle 0x4d8bf7
call fcn.004037b0
jmp 0x4d8c1c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8c1c
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0xd]
mov byte [eax + 0x352], dl
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8c49
lea eax, [ebp - 0x3c]
call fcn.00403c9c
lea eax, [ebp - 0x28]
call fcn.00403c9c
lea eax, [ebp - 0xc]
call fcn.00403c9c
ret