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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x270b313c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x510]
mov ecx, dword [esi + 0x1ac]
push edi
movzx edi, word [esi + 0x1a8]
mov dword [ebp - 0x2a4], eax
xor eax, eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x298], ecx
cmp ebx, eax
jne 0x27063e5e
cmp di, ax
jne 0x27063e5e
xor eax, eax
jmp 0x27064222
push 0x80
push eax
lea eax, [ebp - 0x288]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
je 0x270640d5
push ebx
call sub.msvcrt.dll_strlen
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x270640d5
push ecx
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.msvcrt.dll_memset
and dword [ebp - 0x2a0], 0
add esp, 0xc
mov edi, 0x270a8678
push edi
call sub.msvcrt.dll_strlen
pop ecx
push eax
push ebx
push edi
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x27063f0d
push edi
call sub.msvcrt.dll_strlen
pop ecx
add ebx, eax
mov dword [ebp - 0x2a0], 1
call fcn.27038f34
xor ecx, ecx
sub eax, ecx
je 0x27063f3b
dec eax
je 0x27063f33
dec eax
jne 0x27063f57
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push ebx
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov ecx, esi
call fcn.2706622a
add esp, 0x10
jmp 0x2706401a
mov edi, str.host_
push edi
call sub.msvcrt.dll_strlen
pop ecx
push eax
push ebx
push edi
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x27063edd
push edi
call sub.msvcrt.dll_strlen
pop ecx
add ebx, eax
jmp 0x27063f63
xor eax, eax
inc eax
jmp 0x27064222
cmp dword [ebp - 0x2a0], ecx
je 0x27063f63
push ebx
push str.Couldnt_bind_to_interface__s
mov ecx, esi
call fcn.270662c8
pop ecx
pop ecx
jmp 0x2706421f
cmp dword [ebp - 0x2a0], ecx
jne 0x270640c3
cmp dword [ebp + 0xc], 2
mov edi, dword [ebp - 0x2a4]
mov al, byte [edi + 0xc0]
mov byte [ebp - 0x28d], al
jne 0x27063f84
mov byte [edi + 0xc0], 1
jmp 0x27063f91
cmp dword [ebp + 0xc], 0x17
jne 0x27063f91
mov byte [edi + 0xc0], 2
lea eax, [ebp - 0x29c]
push eax
push 0
push 0
push ebx
mov ecx, esi
call fcn.2706c910
add esp, 0x10
cmp eax, 1
jne 0x27063fb9
lea eax, [ebp - 0x29c]
push eax
call fcn.27065682
pop ecx
mov al, byte [ebp - 0x28d]
mov byte [edi + 0xc0], al
mov edi, dword [ebp - 0x29c]
test edi, edi
je 0x270640c3
mov eax, dword [edi]
push 0x100
lea edx, [ebp - 0x108]
call fcn.2706c296
mov eax, dword [edi]
pop ecx
push dword [eax + 4]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
mov ecx, esi
push ebx
push str.Name__s_family__i_resolved_to__s_family__i_n
call fcn.2706622a
add esp, 0x14
push edi
call fcn.2706cb53
mov eax, dword [edi]
pop ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 4]
jne 0x27063f33
cmp dword [ebp + 0xc], 0x17
jne 0x27064090
lea eax, [ebp - 0x108]
push 0x25
push eax
call sub.msvcrt.dll_strchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x2706403a
mov byte [edi], 0
inc edi
lea eax, [ebp - 0x280]
push eax
push 0x17
lea ecx, [ebp - 0x108]
pop eax
call fcn.270779fc
pop ecx
test eax, eax
jle 0x27064081
push 0x17
pop eax
push dword [ebp - 0x28c]
mov word [ebp - 0x288], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x286], ax
test edi, edi
je 0x27064081
push edi
call sub.msvcrt.dll_atoi
pop ecx
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x294], 0x1c
jmp 0x2706415a
cmp dword [ebp + 0xc], 2
jne 0x2706415a
lea eax, [ebp - 0x284]
push eax
push 2
lea ecx, [ebp - 0x108]
pop eax
call fcn.270779fc
pop ecx
test eax, eax
jle 0x2706415a
push 2
pop eax
push dword [ebp - 0x28c]
jmp 0x27064101
and dword [esi + 0xda8], 0
push ebx
push str.Couldnt_bind_to__s
jmp 0x27063f49
cmp dword [ebp + 0xc], 0x17
jne 0x270640f7
push 0x17
pop eax
push edi
mov word [ebp - 0x288], ax
call sub.WS2_32.dll_htons
mov dword [ebp - 0x294], 0x1c
jmp 0x27064153
cmp dword [ebp + 0xc], 2
jne 0x2706415a
push 2
pop eax
push edi
mov word [ebp - 0x288], ax
call sub.WS2_32.dll_htons
mov dword [ebp - 0x294], 0x10
jmp 0x27064153
dec dword [ebp - 0x298]
cmp dword [ebp - 0x298], 0
jle 0x270641f6
movzx eax, word [ebp - 0x28c]
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
mov ecx, esi
call fcn.2706622a
inc dword [ebp - 0x28c]
pop ecx
pop ecx
push dword [ebp - 0x28c]
call sub.WS2_32.dll_ntohs
mov word [ebp - 0x286], ax
push dword [ebp - 0x294]
lea eax, [ebp - 0x288]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_bind
test eax, eax
jl 0x27064119
mov eax, 0x80
push eax
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x88]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_getsockname
test eax, eax
jge 0x270641cb
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
lea eax, [ebp - 0x208]
mov dword [esi + 0x9d4], edi
call fcn.2705cb1a
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x27064215
movzx eax, word [ebp - 0x28c]
push eax
push str.Local_port:__hu_n
mov ecx, esi
call fcn.2706622a
mov eax, dword [ebp - 0x2a4]
pop ecx
pop ecx
mov dword [eax + 0x1fc], 1
jmp 0x27063e57
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
lea eax, [ebp - 0x208]
mov dword [esi + 0x9d4], edi
call fcn.2705cb1a
push eax
push edi
push str.bind_failed_with_errno__d:__s
mov ecx, esi
call fcn.270662c8
add esp, 0xc
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.27088f70
leave
ret