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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x298], edx
push esi
push edi
mov dword [ebp - 0x290], eax
mov edi, dword [eax]
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x28c], 0
mov ebx, dword [edi + 0x984]
mov eax, dword [edi + 0x5e4]
movzx esi, word [edi + 0x5e0]
mov dword [ebp - 0x2a0], eax
test ebx, ebx
jne 0x427400
test si, si
je 0x4277ac
push 0x80
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.00614d30
add esp, 0xc
test ebx, ebx
je 0x427610
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427423
sub ecx, edx
cmp ecx, 0xff
jae 0x427610
push 0xff
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.00614d30
add esp, 0xc
push 3
push ebx
push 0x714ef0
call fcn.00638a20
add esp, 0xc
test eax, eax
jne 0x42748a
add ebx, 3
push ebx
push str.Couldnt_bind_to_interface__s
push edi
call fcn.004512d0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
push 5
push ebx
push str.host_
call fcn.00638a20
add esp, 0xc
test eax, eax
jne 0x4274a1
add ebx, 5
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 0x570]
mov dword [ebp - 0x29c], ecx
jne 0x4274c3
mov dword [eax + 0x570], 1
lea ecx, [ebp - 0x28c]
mov edx, ebx
push ecx
push 0
push 0
mov ecx, eax
call fcn.00439390
add esp, 0xc
cmp eax, 1
jne 0x4274f4
mov ecx, dword [ebp - 0x290]
lea edx, [ebp - 0x28c]
push eax
call fcn.004260a0
add esp, 4
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x29c]
mov dword [eax + 0x570], ecx
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x4275e4
mov edx, dword [eax]
mov ecx, 2
mov byte [ebp - 0x108], 0
mov eax, dword [edx + 4]
sub eax, 2
jne 0x427544
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x108]
push 0x100
push eax
add edx, 4
call fcn.004430d0
add esp, 8
mov eax, dword [ebp - 0x28c]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push ebx
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.004511c0
mov ebx, dword [ebp - 0x28c]
add esp, 0x18
mov edx, ebx
mov ecx, edi
call fcn.00439760
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x427597
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jne 0x42763d
lea eax, [ebp - 0x284]
push eax
lea edx, [ebp - 0x108]
call fcn.00443190
add esp, 4
test eax, eax
jle 0x42763d
mov eax, 2
push esi
mov word [ebp - 0x288], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x286], ax
mov eax, 0x10
mov dword [ebp - 0x294], eax
jmp 0x42763f
push ebx
push str.Couldnt_bind_to__s
push edi
mov byte [edi + 0x110f], 0
call fcn.004512d0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 2
jne 0x42763d
mov eax, 2
push esi
mov word [ebp - 0x288], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x286], ax
mov eax, 0x10
mov dword [ebp - 0x294], eax
jmp 0x42763f
xor eax, eax
mov ebx, dword [sym.imp.WS2_32.dll_bind]
push eax
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x298]
call ebx
test eax, eax
jns 0x4276b9
nop dword [eax]
mov eax, dword [ebp - 0x2a0]
dec eax
mov dword [ebp - 0x2a0], eax
test eax, eax
jle 0x427744
movzx eax, si
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.004511c0
add esp, 0xc
inc esi
cmp word [ebp - 0x288], 2
jne 0x4276a0
push esi
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x286], ax
push dword [ebp - 0x294]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x298]
call ebx
test eax, eax
js 0x427660
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x29c], 0x80
push 0
push eax
call fcn.00614d30
add esp, 0xc
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x42778d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x208]
push 0x100
mov ecx, esi
mov dword [edi + 0xd9c], esi
call fcn.0045a2e0
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004512d0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x108]
push 0x100
mov ecx, esi
mov dword [edi + 0xd9c], esi
call fcn.0045a2e0
add esp, 4
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.004512d0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
movzx eax, si
push eax
push str.Local_port:__hu_n
push edi
call fcn.004511c0
mov eax, dword [ebp - 0x290]
add esp, 0xc
mov byte [eax + 0x530], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00610840
mov esp, ebp
pop ebp
ret