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

Disassembly:
sub esp, 0x29c
mov eax, dword [0x7c9564]
xor eax, esp
mov dword [esp + 0x298], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x1ac]
push ebx
movzx ebx, word [edi + 0x1a8]
push ebp
xor ebp, ebp
push esi
mov esi, dword [edi + 0x5ac]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ecx
cmp esi, ebp
jne 0x42d930
cmp bx, bp
je 0x42dd44
push 0x80
lea edx, [esp + 0x28]
push ebp
push edx
call fcn.004d1020
add esp, 0xc
cmp esi, ebp
je 0x42dc1e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d950
sub eax, edx
cmp eax, 0xff
jae 0x42dc1e
push 0xff
lea eax, [esp + 0xa9]
push ebp
push eax
mov byte [esp + 0xb0], cl
call fcn.004d1020
mov edx, dword [0x7c6040]
mov eax, edx
mov dword [esp + 0x28], ebp
add esp, 0xc
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d990
sub eax, ebp
push eax
push esi
push edx
call fcn.004d0acc
add esp, 0xc
test eax, eax
jne 0x42da21
mov eax, dword [0x7c6040]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d9b0
sub eax, edx
add esi, eax
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x54]
mov ebp, dword [esp + 0x2b0]
push pe_nt_image_headers32
lea ecx, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x2bc]
push esi
push eax
push ecx
push ebp
call fcn.0045c080
add esp, 0x18
sub eax, 0
je 0x42da85
dec eax
je 0x42da68
dec eax
jne 0x42daa0
push ebp
lea edx, [esp + 0xa8]
push edx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i
push edi
call fcn.0042c140
add esp, 0x14
jmp 0x42db64
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42da30
sub eax, ebp
push eax
push esi
push edx
call fcn.004d0acc
add esp, 0xc
test eax, eax
jne 0x42d9c3
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42da54
mov ebp, dword [esp + 0x2b0]
sub eax, edx
add esi, eax
jmp 0x42daab
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x29c
ret
cmp dword [esp + 0x1c], 0
je 0x42daab
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.0042c1c0
add esp, 0xc
jmp 0x42dd8f
cmp dword [esp + 0x1c], 0
jne 0x42dc00
mov eax, dword [esp + 0xc]
mov bl, byte [eax + 0x100]
cmp ebp, 2
jne 0x42dac5
mov ecx, eax
mov byte [ecx + 0x100], 1
jmp 0x42dad3
cmp ebp, 0x17
jne 0x42dad3
mov edx, eax
mov byte [edx + 0x100], 2
lea eax, [esp + 0x10]
push eax
push 0
push 0
push esi
push edi
call fcn.0044c310
add esp, 0x14
cmp eax, 1
jne 0x42daf9
lea ecx, [esp + 0x10]
push ecx
push edi
call fcn.004278d0
add esp, 8
mov edx, dword [esp + 0xc]
mov byte [edx + 0x100], bl
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42dc00
mov edx, dword [eax]
push pe_nt_image_headers32
lea ecx, [esp + 0xa8]
push ecx
push edx
call fcn.0044b560
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0xb4]
push eax
push ebp
push esi
push str.Name__s_family__i_resolved_to__s_family__i
push edi
call fcn.0042c140
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.0044c5c0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
add esp, 0x2c
cmp ebp, dword [eax + 4]
jne 0x42da68
mov ebx, dword [esp + 0x18]
cmp ebp, 0x17
jne 0x42dbd4
lea ecx, [esp + 0xa4]
push 0x25
push ecx
call fcn.004cd150
mov esi, eax
add esp, 8
test esi, esi
je 0x42db85
mov byte [esi], 0
inc esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xa8]
push eax
push 0x17
call fcn.0045bfa0
add esp, 0xc
test eax, eax
jle 0x42dbc7
mov ecx, 0x17
push ebx
mov word [esp + 0x28], cx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x26], ax
test esi, esi
je 0x42dbc7
push esi
call fcn.004cd426
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 0x1c
jmp 0x42dc60
cmp ebp, 2
jne 0x42dc60
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xa8]
push eax
push ebp
call fcn.0045bfa0
add esp, 0xc
test eax, eax
jle 0x42dc60
mov ecx, ebp
mov word [esp + 0x24], cx
jmp 0x42dc4c
push esi
push str.Couldnt_bind_to__s
push edi
mov dword [edi + 0xe58], 0
call fcn.0042c1c0
add esp, 0xc
jmp 0x42dd8f
mov eax, dword [esp + 0x2b0]
cmp eax, 0x17
jne 0x42dc42
mov edx, eax
push ebx
mov word [esp + 0x28], dx
call dword [sym.imp.WSOCK32.dll_htons]
mov dword [esp + 0x14], 0x1c
jmp 0x42dc5b
cmp eax, 2
jne 0x42dc60
mov word [esp + 0x24], ax
push ebx
call dword [sym.imp.WSOCK32.dll_htons]
mov dword [esp + 0x14], 0x10
mov word [esp + 0x26], ax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2ac]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jns 0x42dcc3
mov ebp, dword [sym.imp.WSOCK32.dll_ntohs]
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jle 0x42dd5e
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next
push edi
call fcn.0042c140
add esp, 0xc
inc ebx
push ebx
call ebp
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
mov word [esp + 0x32], ax
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
js 0x42dc82
push 0x80
lea eax, [esp + 0xa8]
push 0
push eax
mov dword [esp + 0x24], 0x80
call fcn.004d1020
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xa8]
push edx
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jns 0x42dd24
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push pe_nt_image_headers32
lea eax, [esp + 0x1a8]
push eax
push esi
mov dword [edi + 0xa84], esi
call fcn.004197e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x42dd86
movzx ecx, bx
push ecx
push str.Local_port:__hu
push edi
call fcn.0042c140
mov edx, dword [esp + 0x18]
add esp, 0xc
mov dword [edx + 0x2dc], 1
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.004d0e4d
add esp, 0x29c
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push pe_nt_image_headers32
lea eax, [esp + 0x1a8]
push eax
push esi
mov dword [edi + 0xa84], esi
call fcn.004197e0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.0042c1c0
add esp, 0x1c
mov ecx, dword [esp + 0x2a4]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x2d
call fcn.004d0e4d
add esp, 0x29c
ret