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

Disassembly:
sub esp, 0x19c
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
push ebx
mov ebx, dword [eax]
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x14], ebp
mov esi, dword [ebx + 0xa54]
push edi
movzx edi, word [ebx + 0x610]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x614]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
cmp esi, ebp
jne 0x42d507
cmp di, bp
je 0x42d930
push 0x80
lea ecx, [esp + 0x2c]
push ebp
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp esi, ebp
je 0x42d8bd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d527
sub eax, edx
cmp eax, 0xff
jae 0x42d8bd
push 0xff
lea edx, [esp + 0xad]
push ebp
push edx
mov byte [esp + 0xb4], cl
call sub.MSVCR100.dll_memset
mov edx, dword [0x4760b0]
mov eax, edx
add esp, 0xc
mov dword [esp + 0x1c], ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d567
sub eax, edi
mov edi, dword [sym.imp.MSVCR100.dll_strncmp]
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x42d5a2
mov eax, dword [0x4760b0]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d590
sub eax, edx
add esi, eax
mov ebp, 1
jmp 0x42d5eb
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d5b0
sub eax, ebp
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x42d5e7
mov eax, dword [str.host_]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d5d0
mov edi, dword [esp + 0x1b8]
sub eax, edx
add esi, eax
jmp 0x42d66e
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x8c]
mov edi, dword [esp + 0x1b8]
push 0x100
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x1c4]
push esi
push edx
push eax
push edi
call fcn.0041f810
add esp, 0x18
sub eax, 0
je 0x42d64e
dec eax
je 0x42d644
dec eax
jne 0x42d666
push edi
lea ecx, [esp + 0xac]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebx
call fcn.00428a80
add esp, 0x14
jmp 0x42d718
mov eax, 1
jmp 0x42d962
test ebp, ebp
je 0x42d66e
push esi
push str.Couldnt_bind_to_interface__s
push ebx
call fcn.00428bd0
add esp, 0xc
jmp 0x42d95d
test ebp, ebp
jne 0x42d89f
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp + 0x358]
mov dword [esp + 0x1c], edx
cmp edi, 2
jne 0x42d68d
mov dword [ebp + 0x358], 1
jmp 0x42d69c
cmp edi, 0x17
jne 0x42d69c
mov dword [ebp + 0x358], 2
lea eax, [esp + 0x18]
push eax
push 0
push esi
push ebp
call fcn.00420570
add esp, 0x10
cmp eax, 1
jne 0x42d6c0
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.0041e020
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x358], edx
test eax, eax
je 0x42d89f
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.0041fad0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0xb8]
push eax
push edi
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebx
call fcn.00428a80
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
call fcn.00420790
add esp, 0x2c
cmp edi, 0x17
jne 0x42d854
lea edx, [esp + 0xa8]
push 0x25
push edx
call dword [sym.imp.MSVCR100.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x42d73e
mov byte [esi], 0
inc esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xac]
push ecx
push 0x17
call fcn.00431340
add esp, 0xc
test eax, eax
jle 0x42d785
mov eax, dword [esp + 0x20]
mov edx, 0x17
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
test esi, esi
je 0x42d785
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], 0x1c
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1b4]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x42d7f4
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 0x42d934
movzx eax, di
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.00428a80
add esp, 0xc
inc edi
push edi
call ebp
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x42d7b3
push 0x80
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x28], 0x80
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xac]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x42d910
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
mov dword [ebx + 0xe18], esi
call fcn.00454480
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x42d954
cmp edi, 2
jne 0x42d78d
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xac]
push edx
push edi
call fcn.00431340
add esp, 0xc
test eax, eax
jle 0x42d78d
mov ecx, dword [esp + 0x20]
mov eax, edi
push ecx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x10], 0x10
jmp 0x42d78d
push esi
push str.Couldnt_bind_to__s
push ebx
mov dword [ebx + 0xe14], 0
call fcn.00428bd0
add esp, 0xc
jmp 0x42d95d
mov eax, dword [esp + 0x1b8]
cmp eax, 0x17
jne 0x42d8e9
mov edx, eax
push edi
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x10], 0x1c
jmp 0x42d791
cmp eax, 2
jne 0x42d791
push edi
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x10], 0x10
jmp 0x42d791
movzx ecx, di
push ecx
push str.Local_port:__hu_n
push ebx
call fcn.00428a80
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [edx + 0x308], 1
xor eax, eax
jmp 0x42d962
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
mov dword [ebx + 0xe18], esi
call fcn.00454480
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.00428bd0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418a8f
add esp, 0x19c
ret