Function at 0x4b2a84
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 - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b2cd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x426], 0
je 0x4b2ac9
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x428]
call dword [ebx + 0x424]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403f98
jne 0x4b2b1e
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 + 0x34c]
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.00409ab4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004aeb14
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 + 0x318]
mov eax, dword [eax + 0x34c]
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, 0x4b2ce8
call fcn.00409ffc
mov eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov ecx, 0x4b2cf8
mov edx, 0x4b2d04
call fcn.004537d4
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 8]
pop ecx
call fcn.00403ed4
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x462]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov byte [eax + 0x462], 0
xor edx, edx
push ebp
push 0x4b2ca0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x28]
mov eax, 0x4ac3a8
call fcn.00405c64
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00403e90
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004aec04
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0
jne 0x4b2c08
call fcn.00403720
jmp 0x4b2ca7
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0xc8
je 0x4b2c2a
cmp ax, 0xe2
je 0x4b2c2a
cmp ax, 0x1f4
jge 0x4b2c2a
cmp ax, 0x1a5
jne 0x4b2c30
cmp ax, 0x226
jne 0x4b2c86
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a6444
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a8bdc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a6780
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b2c86
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0xc8
je 0x4b2c86
cmp ax, 0xe2
je 0x4b2c86
cmp ax, 0x1f4
jg 0x4b2c86
cmp ax, 0x1a5
jne 0x4b2c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2ca7
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0xd]
mov byte [eax + 0x462], dl
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2cd9
lea eax, [ebp - 0x3c]
call fcn.00403c0c
lea eax, [ebp - 0x28]
call fcn.00403c0c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403c30
ret