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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x194], edx
push ebx
push esi
push edi
mov ebx, dword [eax]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x190], 0
mov edi, dword [ebx + 0x358]
mov eax, dword [ebx + 0x1ac]
movzx esi, word [ebx + 0x1a8]
mov dword [ebp - 0x1a0], eax
test edi, edi
jne 0x43b100
test si, si
je 0x43b45c
push 0x80
lea eax, [ebp - 0x188]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
test edi, edi
je 0x43b2d5
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b123
sub ecx, edx
cmp ecx, 0xff
jae 0x43b2d5
push 0xff
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 3
push edi
push 0x496adc
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x43b191
add edi, 3
push edi
push str.Couldnt_bind_to_interface__s
push ebx
call fcn.0043d9e0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
push 5
push edi
push str.host_
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x43b1a9
add edi, 5
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 0x284]
mov dword [ebp - 0x19c], ecx
jne 0x43b1cb
mov dword [eax + 0x284], 1
lea ecx, [ebp - 0x190]
mov edx, edi
push ecx
push 0
mov ecx, eax
call fcn.0043c950
add esp, 8
cmp eax, 1
jne 0x43b1f6
mov ecx, dword [ebp - 0x18c]
lea edx, [ebp - 0x190]
call fcn.0043d280
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x19c]
mov dword [eax + 0x284], ecx
mov eax, dword [ebp - 0x190]
test eax, eax
je 0x43b2b0
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
sub eax, 2
jne 0x43b239
mov ecx, dword [ecx + 0x18]
lea edx, [ebp - 0x108]
add ecx, 4
push 0x100
call fcn.0044dfc0
add esp, 4
mov eax, dword [ebp - 0x190]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebx
call fcn.0043d920
mov edx, dword [ebp - 0x190]
add esp, 0x18
mov ecx, ebx
call fcn.0043cab0
cmp dword [ebp + 8], 2
jne 0x43b302
lea edx, [ebp - 0x184]
lea ecx, [ebp - 0x108]
call fcn.0044eed0
test eax, eax
jle 0x43b302
mov eax, 2
push esi
mov word [ebp - 0x188], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x186], ax
mov eax, 0x10
mov dword [ebp - 0x198], eax
jmp 0x43b304
push edi
push str.Couldnt_bind_to__s
push ebx
call fcn.0043d9e0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 2
jne 0x43b302
mov eax, 2
push esi
mov word [ebp - 0x188], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x186], ax
mov eax, 0x10
mov dword [ebp - 0x198], eax
jmp 0x43b304
xor eax, eax
mov edi, dword [sym.imp.WS2_32.dll_bind]
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x194]
call edi
test eax, eax
jns 0x43b379
mov edi, edi
mov eax, dword [ebp - 0x1a0]
dec eax
mov dword [ebp - 0x1a0], eax
test eax, eax
jle 0x43b3fc
movzx eax, si
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.0043d920
add esp, 0xc
inc esi
cmp word [ebp - 0x188], 2
jne 0x43b360
push esi
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x186], ax
push dword [ebp - 0x198]
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x194]
call edi
test eax, eax
js 0x43b320
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x19c], 0x80
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x194]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x43b43d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x18c]
mov esi, eax
mov edx, esi
mov dword [ebx + 0x85d4], esi
call fcn.0044e730
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043d9e0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x18c]
mov esi, eax
mov edx, esi
mov dword [ebx + 0x85d4], esi
call fcn.0044e730
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.0043d9e0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
movzx eax, si
push eax
push str.Local_port:__hu_n
push ebx
call fcn.0043d920
mov eax, dword [ebp - 0x18c]
add esp, 0xc
mov byte [eax + 0x267], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047db8e
mov esp, ebp
pop ebp
ret