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

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x29c], eax
movzx ecx, word [edi + 0x1aa]
mov eax, dword [esp + 0x2a4]
push ebx
movzx ebx, word [edi + 0x1a8]
push ebp
xor ebp, ebp
push esi
mov esi, dword [edi + 0x574]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ecx
cmp esi, ebp
jne 0x43c305
cmp bx, bp
je 0x43c761
push 0x80
lea edx, [esp + 0x2c]
push ebp
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp esi, ebp
je 0x43c6ec
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c325
sub eax, edx
cmp eax, 0xff
jae 0x43c6ec
push 0xff
lea eax, [esp + 0xad]
push ebp
push eax
mov byte [esp + 0xb4], cl
call sub.MSVCR100.dll_memset
mov edx, dword [0x45e144]
mov eax, edx
mov dword [esp + 0x2c], ebp
add esp, 0xc
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c365
sub eax, ebp
mov ebp, dword [sym.imp.MSVCR100.dll_strncmp]
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x43c39a
mov eax, dword [0x45e144]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c388
sub eax, edx
add esi, eax
mov ebx, 1
jmp 0x43c3dd
mov edx, dword [str.host_]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c3a5
sub eax, ebx
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x43c3d9
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c3c2
mov ebp, dword [esp + 0x2b8]
sub eax, edx
add esi, eax
jmp 0x43c473
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x4ec]
mov ebp, dword [esp + 0x2b8]
push 0x100
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x2c4]
push esi
push eax
push ecx
push ebp
call fcn.0040fcf0
add esp, 0x18
sub eax, 0
je 0x43c453
dec eax
je 0x43c436
dec eax
jne 0x43c46b
push ebp
lea edx, [esp + 0xac]
push edx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i
push edi
call fcn.00414070
add esp, 0x14
jmp 0x43c528
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x2a0
ret
test ebx, ebx
je 0x43c473
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.00413f30
add esp, 0xc
jmp 0x43c7ac
test ebx, ebx
jne 0x43c6ce
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0x4f8]
mov byte [esp + 0xf], al
cmp ebp, 2
jne 0x43c48f
mov byte [ebx + 0x4f8], 1
jmp 0x43c49b
cmp ebp, 0x17
jne 0x43c49b
mov byte [ebx + 0x4f8], 2
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x50
push esi
push edi
call fcn.00433040
add esp, 0x14
cmp eax, 1
jne 0x43c4c1
lea edx, [esp + 0x10]
push edx
push edi
call fcn.00413900
add esp, 8
mov al, byte [esp + 0xf]
mov byte [ebx + 0x4f8], al
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43c6ce
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.004325c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0xb8]
push eax
push ebp
push esi
push str.Name__s_family__i_resolved_to__s_family__i
push edi
call fcn.00414070
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.00433330
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
add esp, 0x2c
cmp ebp, dword [eax + 4]
jne 0x43c436
cmp ebp, 0x17
jne 0x43c683
lea ecx, [esp + 0xa8]
push 0x25
push ecx
call dword [sym.imp.MSVCR100.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x43c54e
mov byte [esi], 0
inc esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xac]
push eax
push 0x17
call fcn.00442680
add esp, 0xc
test eax, eax
jle 0x43c5a2
mov edx, dword [esp + 0x18]
mov ecx, 0x17
push edx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
test esi, esi
je 0x43c5a2
push 0xa
push 0
push esi
call dword [sym.imp.MSVCR100.dll_strtoul]
add esp, 0xc
cmp eax, 0xffffffff
ja 0x43c436
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 0x1c
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2b4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x43c61b
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x43c77b
inc ebx
test bx, bx
je 0x43c77b
movzx edx, bx
dec edx
push edx
push str.Bind_to_local_port__hu_failed__trying_next
push edi
call fcn.00414070
add esp, 0xc
push ebx
call ebp
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x43c5d0
push 0x80
lea edx, [esp + 0xac]
push 0
push edx
mov dword [esp + 0x2c], 0x80
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xac]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x43c741
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1ac]
mov esi, eax
push edx
push esi
mov dword [edi + 0xa38], esi
call fcn.0040ae50
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x43c7a3
cmp ebp, 2
jne 0x43c5aa
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xac]
push ecx
push ebp
call fcn.00442680
add esp, 0xc
test eax, eax
jle 0x43c5aa
mov eax, dword [esp + 0x18]
mov edx, ebp
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x43c5aa
push esi
push str.Couldnt_bind_to__s
push edi
mov dword [edi + 0xe84], 0
call fcn.00413f30
add esp, 0xc
jmp 0x43c7ac
mov eax, dword [esp + 0x2b8]
cmp eax, 0x17
jne 0x43c718
mov ecx, eax
push ebx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x1c
jmp 0x43c5ae
cmp eax, 2
jne 0x43c5ae
mov edx, eax
push ebx
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x43c5ae
movzx eax, bx
push eax
push str.Local_port:__hu
push edi
call fcn.00414070
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [ecx + 0x230], 1
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.0044c7a4
add esp, 0x2a0
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1ac]
mov esi, eax
push edx
push esi
mov dword [edi + 0xa38], esi
call fcn.0040ae50
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.00413f30
add esp, 0x1c
mov ecx, dword [esp + 0x2a8]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x2d
call fcn.0044c7a4
add esp, 0x2a0
ret