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

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x45d380]
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 0x43b6b5
cmp bx, bp
je 0x43bb11
push 0x80
lea edx, [esp + 0x2c]
push ebp
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp esi, ebp
je 0x43ba9c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b6d5
sub eax, edx
cmp eax, 0xff
jae 0x43ba9c
push 0xff
lea eax, [esp + 0xad]
push ebp
push eax
mov byte [esp + 0xb4], cl
call sub.MSVCR100.dll_memset
mov edx, dword [0x45d144]
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 0x43b715
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 0x43b74a
mov eax, dword [0x45d144]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b738
sub eax, edx
add esi, eax
mov ebx, 1
jmp 0x43b78d
mov edx, dword [str.host_]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b755
sub eax, ebx
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x43b789
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b772
mov ebp, dword [esp + 0x2b8]
sub eax, edx
add esi, eax
jmp 0x43b823
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.004417a0
add esp, 0x18
sub eax, 0
je 0x43b803
dec eax
je 0x43b7e6
dec eax
jne 0x43b81b
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.00413420
add esp, 0x14
jmp 0x43b8d8
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.0044bb74
add esp, 0x2a0
ret
test ebx, ebx
je 0x43b823
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.004132e0
add esp, 0xc
jmp 0x43bb5c
test ebx, ebx
jne 0x43ba7e
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0x4f8]
mov byte [esp + 0xf], al
cmp ebp, 2
jne 0x43b83f
mov byte [ebx + 0x4f8], 1
jmp 0x43b84b
cmp ebp, 0x17
jne 0x43b84b
mov byte [ebx + 0x4f8], 2
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x50
push esi
push edi
call fcn.004323e0
add esp, 0x14
cmp eax, 1
jne 0x43b871
lea edx, [esp + 0x10]
push edx
push edi
call fcn.00412cb0
add esp, 8
mov al, byte [esp + 0xf]
mov byte [ebx + 0x4f8], al
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43ba7e
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.00431960
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.00413420
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.004326d0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
add esp, 0x2c
cmp ebp, dword [eax + 4]
jne 0x43b7e6
cmp ebp, 0x17
jne 0x43ba33
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 0x43b8fe
mov byte [esi], 0
inc esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xac]
push eax
push 0x17
call fcn.00441a70
add esp, 0xc
test eax, eax
jle 0x43b952
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 0x43b952
push 0xa
push 0
push esi
call dword [sym.imp.MSVCR100.dll_strtoul]
add esp, 0xc
cmp eax, 0xffffffff
ja 0x43b7e6
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 0x43b9cb
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 0x43bb2b
inc ebx
test bx, bx
je 0x43bb2b
movzx edx, bx
dec edx
push edx
push str.Bind_to_local_port__hu_failed__trying_next
push edi
call fcn.00413420
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 0x43b980
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 0x43baf1
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.0040a220
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x43bb53
cmp ebp, 2
jne 0x43b95a
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xac]
push ecx
push ebp
call fcn.00441a70
add esp, 0xc
test eax, eax
jle 0x43b95a
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 0x43b95a
push esi
push str.Couldnt_bind_to__s
push edi
mov dword [edi + 0xe84], 0
call fcn.004132e0
add esp, 0xc
jmp 0x43bb5c
mov eax, dword [esp + 0x2b8]
cmp eax, 0x17
jne 0x43bac8
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 0x43b95e
cmp eax, 2
jne 0x43b95e
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 0x43b95e
movzx eax, bx
push eax
push str.Local_port:__hu
push edi
call fcn.00413420
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.0044bb74
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.0040a220
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.004132e0
add esp, 0x1c
mov ecx, dword [esp + 0x2a8]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x2d
call fcn.0044bb74
add esp, 0x2a0
ret