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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
movzx ebx, word [edi + 0x128]
mov esi, dword [edi + 0x2a8]
mov dword [ebp - 0x11c], eax
mov eax, dword [edi + 0x12c]
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], eax
test esi, esi
je 0x4ab8ca
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ab700
sub eax, edx
cmp eax, 0xff
jae 0x4ab8ca
push 0xff
mov byte [ebp - 0x104], cl
lea ecx, [ebp - 0x103]
push 0
push ecx
mov dword [ebp - 0x118], 0
call fcn.005902c0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ab7a5
push 0x100
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.004c1650
add esp, 0xc
test eax, eax
je 0x4ab7a5
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
push 0
lea ecx, [ebp - 0x104]
push ecx
push edx
call fcn.004a2560
add esp, 0x10
cmp eax, 1
jne 0x4ab79b
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.004b07d0
add esp, 8
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4ab820
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
push edx
push 0
push esi
push eax
call fcn.004a2560
add esp, 0x10
cmp eax, 1
jne 0x4ab7d9
mov edx, dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
push ecx
push edx
call fcn.004b07d0
add esp, 8
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4ab82a
cmp ebx, 0xffffffff
jne 0x4ab801
mov edx, dword [eax]
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push edx
call fcn.004a2180
add esp, 0xc
jmp 0x4ab81a
lea edx, [ebp - 0x104]
mov eax, esi
sub edx, esi
jmp 0x4ab810
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4ab810
mov eax, dword [ebp - 0x118]
push eax
push edi
call fcn.004a2410
add esp, 8
cmp byte [ebp - 0x104], 0
jne 0x4ab858
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.004ab1b0
add esp, 0xc
pop edi
pop esi
mov eax, 0x2d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x104]
push ecx
push str.Bind_local_address_to__s_n
push edi
call fcn.004ab130
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4ab8aa
lea eax, [ebp - 0x104]
push eax
push str.couldnt_find_my_own_IP_address___s_
push edi
call fcn.004ab1b0
add esp, 0xc
pop edi
pop esi
mov eax, 0x2d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4ab842
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x18]
mov ebx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
jmp 0x4ab910
xor eax, eax
cmp bx, ax
je 0x4ab9ec
mov edx, 2
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov word [ebp - 0x114], dx
mov dword [ebp - 0x110], eax
lea esi, [ebp - 0x114]
mov dword [ebp - 0x128], 0x10
nop
cmp word [esi], 2
jne 0x4ab921
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp + 0xc]
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x4ab961
mov eax, dword [ebp - 0x120]
dec eax
mov dword [ebp - 0x120], eax
test eax, eax
jle 0x4ab9ff
movzx edx, bx
push edx
push str.Bind_to_local_port__d_failed__trying_next_n
push edi
call fcn.004ab130
add esp, 0xc
inc ebx
jmp 0x4ab910
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edx
mov dword [ebp - 0x120], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x4ab9ab
push str.getsockname___failed
push edi
call fcn.004ab1b0
add esp, 8
pop edi
pop esi
mov eax, 0x2d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x84], 2
jne 0x4ab9cd
mov eax, dword [ebp - 0x82]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [ebp - 0x124], ecx
mov ebx, ecx
movzx edx, bx
push edx
push str.Local_port:__d_n
push edi
call fcn.004ab130
mov eax, dword [ebp - 0x11c]
add esp, 0xc
mov byte [eax + 0x12e], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x11c]
push eax
push ecx
mov dword [edi + 0x8484], eax
call fcn.004c1590
push eax
push str.bind_failure:__s
push edi
call fcn.004ab1b0
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2d
pop ebx
call fcn.0058cf08
mov esp, ebp
pop ebp
ret