Function at 0x42ce00
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 0x42ce57
cmp di, bp
je 0x42d280
push 0x80
lea ecx, [esp + 0x2c]
push ebp
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp esi, ebp
je 0x42d20d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ce77
sub eax, edx
cmp eax, 0xff
jae 0x42d20d
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 0x42ceb7
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 0x42cef2
mov eax, dword [0x4760b0]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42cee0
sub eax, edx
add esi, eax
mov ebp, 1
jmp 0x42cf3b
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 0x42cf00
sub eax, ebp
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x42cf37
mov eax, dword [str.host_]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42cf20
mov edi, dword [esp + 0x1b8]
sub eax, edx
add esi, eax
jmp 0x42cfbe
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.0041f170
add esp, 0x18
sub eax, 0
je 0x42cf9e
dec eax
je 0x42cf94
dec eax
jne 0x42cfb6
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.004283c0
add esp, 0x14
jmp 0x42d068
mov eax, 1
jmp 0x42d2b2
test ebp, ebp
je 0x42cfbe
push esi
push str.Couldnt_bind_to_interface__s
push ebx
call fcn.00428510
add esp, 0xc
jmp 0x42d2ad
test ebp, ebp
jne 0x42d1ef
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp + 0x358]
mov dword [esp + 0x1c], edx
cmp edi, 2
jne 0x42cfdd
mov dword [ebp + 0x358], 1
jmp 0x42cfec
cmp edi, 0x17
jne 0x42cfec
mov dword [ebp + 0x358], 2
lea eax, [esp + 0x18]
push eax
push 0
push esi
push ebp
call fcn.0041fec0
add esp, 0x10
cmp eax, 1
jne 0x42d010
lea ecx, [esp + 0x18]
push ecx
push ebp
call fcn.0041d990
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x358], edx
test eax, eax
je 0x42d1ef
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.0041f430
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.004283c0
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
call fcn.004200e0
add esp, 0x2c
cmp edi, 0x17
jne 0x42d1a4
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 0x42d08e
mov byte [esi], 0
inc esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xac]
push ecx
push 0x17
call fcn.00430ca0
add esp, 0xc
test eax, eax
jle 0x42d0d5
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 0x42d0d5
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 0x42d144
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 0x42d284
movzx eax, di
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.004283c0
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 0x42d103
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 0x42d260
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.00453df0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x42d2a4
cmp edi, 2
jne 0x42d0dd
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xac]
push edx
push edi
call fcn.00430ca0
add esp, 0xc
test eax, eax
jle 0x42d0dd
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 0x42d0dd
push esi
push str.Couldnt_bind_to__s
push ebx
mov dword [ebx + 0xe14], 0
call fcn.00428510
add esp, 0xc
jmp 0x42d2ad
mov eax, dword [esp + 0x1b8]
cmp eax, 0x17
jne 0x42d239
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 0x42d0e1
cmp eax, 2
jne 0x42d0e1
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 0x42d0e1
movzx ecx, di
push ecx
push str.Local_port:__hu_n
push ebx
call fcn.004283c0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [edx + 0x308], 1
xor eax, eax
jmp 0x42d2b2
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.00453df0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.00428510
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004183ef
add esp, 0x19c
ret