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

Disassembly:
sub esp, 0x224
mov eax, dword [0x4c8630]
xor eax, esp
mov dword [esp + 0x21c], eax
mov dl, byte [0x4b94d7]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, dword [ebx]
movzx esi, word [ebp + 0x140]
mov ecx, dword [ebp + 0x144]
mov edi, dword [ebp + 0x354]
xor eax, eax
push 0xff
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x131]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ecx
mov byte [esp + 0x134], dl
call fcn.0048aa40
add esp, 0xc
test edi, edi
jne 0x42ee65
test si, si
je 0x42f0dd
push 0x80
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0048aa40
add esp, 0xc
test edi, edi
je 0x42f08f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ee86
sub eax, edx
cmp eax, 0xff
jae 0x42f08f
push 3
push edi
push 0x4ba8a0
call fcn.0048dc69
add esp, 0xc
test eax, eax
jne 0x42eec6
add edi, 3
push edi
push str.Couldnt_bind_to_interface__s
mov eax, ebp
call fcn.00433ce0
add esp, 8
jmp 0x42f109
push 5
push edi
push str.host_
call fcn.0048dc69
add esp, 0xc
test eax, eax
jne 0x42eedd
add edi, 5
cmp dword [esp + 0x23c], 2
mov esi, dword [ebx + 0x220]
jne 0x42eef7
mov dword [ebx + 0x220], 1
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push ebx
call fcn.00432980
add esp, 0x10
cmp eax, 1
jne 0x42ef1a
lea eax, [esp + 0x1c]
push eax
call fcn.004331f0
add esp, 4
mov dword [ebx + 0x220], esi
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x42f07d
mov ecx, dword [ebx]
push 0x100
lea esi, [esp + 0x12c]
call fcn.00432740
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x240]
add esp, 4
push edx
mov eax, esi
push eax
push ecx
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
mov ecx, ebp
call fcn.00433c20
add esp, 0x14
mov edi, ebx
mov esi, ebp
call fcn.00432b70
cmp dword [esp + 0x23c], 2
jne 0x42efb1
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x12c]
push eax
call fcn.00452db0
add esp, 8
test eax, eax
jle 0x42efb1
mov edx, dword [esp + 0x20]
mov ecx, 2
push edx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x238]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x42f023
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jle 0x42f0e1
movzx eax, si
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
mov ecx, ebp
call fcn.00433c20
add esp, 8
inc esi
cmp word [esp + 0x28], 2
jne 0x42f00e
push esi
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x2a], ax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x42efd5
push 0x80
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x24], 0x80
call fcn.0048aa40
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xac]
push edx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x42f0c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push ebx
mov dword [ebp + 0x8594], edi
call fcn.00452ce0
add esp, 4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x42f0ff
push edi
push str.Couldnt_bind_to__s
mov eax, ebp
call fcn.00433ce0
add esp, 8
jmp 0x42f109
cmp dword [esp + 0x23c], 2
jne 0x42efb9
mov eax, 2
push esi
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x42efb9
movzx eax, si
push eax
push str.Local_port:__hu_n
mov ecx, ebp
call fcn.00433c20
add esp, 8
mov dword [ebx + 0x200], 1
xor eax, eax
jmp 0x42f10e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push ebx
mov dword [ebp + 0x8594], edi
call fcn.00452ce0
add esp, 4
push eax
push edi
push str.bind_failed_with_errno__d:__s
mov eax, ebp
call fcn.00433ce0
add esp, 0xc
mov eax, 0x2d
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00488f53
add esp, 0x224
ret