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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x100e7260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x254], eax
and dword [ebp - 0x24c], 0
lea eax, [ebp - 0x184]
mov dword [ebp - 0x228], eax
and dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x210]
mov ax, word [eax + 0x1a8]
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 0x1ac]
mov dword [ebp - 0x250], eax
push 4
pop eax
shl eax, 3
mov ecx, dword [ebp - 0x210]
mov eax, dword [ecx + eax + 0x3c0]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x1007f9d6
movzx eax, word [ebp - 0x218]
test eax, eax
jne 0x1007f9d6
xor eax, eax
jmp 0x10080015
push 0x80
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.1003e130
add esp, 0xc
cmp dword [ebp - 0x20c], 0
je 0x1007fe54
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x23c]
mov al, byte [eax]
mov byte [ebp - 0x21e], al
inc dword [ebp - 0x23c]
cmp byte [ebp - 0x21e], 0
jne 0x1007fa12
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x26c]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0xff
jae 0x1007fe54
mov al, byte [0x100f62bf]
mov byte [ebp - 0x104], al
push 0xff
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.1003e130
add esp, 0xc
and dword [ebp - 0x240], 0
mov byte [ebp - 0x205], 0
mov byte [ebp - 0x211], 0
mov eax, dword [0x100e974c]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x234]
mov al, byte [eax]
mov byte [ebp - 0x21d], al
inc dword [ebp - 0x234]
cmp byte [ebp - 0x21d], 0
jne 0x1007fa9f
mov eax, dword [ebp - 0x234]
sub eax, dword [ebp - 0x280]
mov dword [ebp - 0x288], eax
push dword [ebp - 0x288]
push dword [ebp - 0x20c]
push dword [0x100e974c]
call fcn.1003f1b0
add esp, 0xc
test eax, eax
jne 0x1007fb51
mov eax, dword [0x100e974c]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x230]
mov al, byte [eax]
mov byte [ebp - 0x21f], al
inc dword [ebp - 0x230]
cmp byte [ebp - 0x21f], 0
jne 0x1007fb04
mov eax, dword [ebp - 0x230]
sub eax, dword [ebp - 0x274]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x20c]
add eax, dword [ebp - 0x264]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 0x205], 1
jmp 0x1007fc16
mov eax, dword [str.host_]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
inc eax
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x244]
mov al, byte [eax]
mov byte [ebp - 0x220], al
inc dword [ebp - 0x244]
cmp byte [ebp - 0x220], 0
jne 0x1007fb69
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x284]
mov dword [ebp - 0x258], eax
push dword [ebp - 0x258]
push dword [ebp - 0x20c]
push dword [0x100e9748]
call fcn.1003f1b0
add esp, 0xc
test eax, eax
jne 0x1007fc16
mov eax, dword [str.host_]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
inc eax
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x238]
mov al, byte [eax]
mov byte [ebp - 0x221], al
inc dword [ebp - 0x238]
cmp byte [ebp - 0x221], 0
jne 0x1007fbce
mov eax, dword [ebp - 0x238]
sub eax, dword [ebp - 0x27c]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x20c]
add eax, dword [ebp - 0x25c]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 0x211], 1
movzx eax, byte [ebp - 0x211]
test eax, eax
jne 0x1007fcdb
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x20c]
mov eax, dword [ebp + 8]
push dword [eax + 0x90]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100b2882
add esp, 0x18
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x1007fc71
cmp dword [ebp - 0x248], 1
je 0x1007fc9f
cmp dword [ebp - 0x248], 2
je 0x1007fca7
jmp 0x1007fcdb
movzx eax, byte [ebp - 0x205]
test eax, eax
je 0x1007fc9d
push dword [ebp - 0x20c]
push str.Couldnt_bind_to_interface__s
push dword [ebp - 0x210]
call fcn.10083b69
add esp, 0xc
push 0x2d
pop eax
jmp 0x10080015
jmp 0x1007fcdb
xor eax, eax
inc eax
jmp 0x10080015
mov byte [ebp - 0x205], 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x20c]
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push dword [ebp - 0x210]
call fcn.100837f8
add esp, 0x14
mov dword [ebp - 0x240], 1
movzx eax, byte [ebp - 0x205]
test eax, eax
jne 0x1007fdce
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3d8]
mov dword [ebp - 0x268], eax
cmp dword [ebp + 0x10], 2
jne 0x1007fd0c
mov eax, dword [ebp + 8]
mov dword [eax + 0x3d8], 1
lea eax, [ebp - 0x22c]
push eax
push 0
push dword [ebp - 0x20c]
push dword [ebp + 8]
call fcn.100815bd
add esp, 0x10
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 1
jne 0x1007fd46
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call fcn.10082081
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x268]
mov dword [eax + 0x3d8], ecx
cmp dword [ebp - 0x22c], 0
je 0x1007fdc7
push 0x100
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x22c]
push dword [eax]
call fcn.1008154e
add esp, 0xc
mov eax, dword [ebp - 0x22c]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x20c]
push str.Name__s_family__i_resolved_to__s_family__i_n
push dword [ebp - 0x210]
call fcn.100837f8
add esp, 0x18
push dword [ebp - 0x22c]
push dword [ebp - 0x210]
call fcn.10081903
pop ecx
pop ecx
mov dword [ebp - 0x240], 1
jmp 0x1007fdce
or dword [ebp - 0x240], 0xffffffff
cmp dword [ebp - 0x240], 0
jle 0x1007fe28
cmp dword [ebp + 0x10], 2
jne 0x1007fe28
mov eax, dword [ebp - 0x228]
add eax, 4
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call fcn.100b3e7a
add esp, 0xc
test eax, eax
jle 0x1007fe28
push 2
pop eax
mov ecx, dword [ebp - 0x228]
mov word [ecx], ax
push dword [ebp - 0x218]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x228]
mov word [ecx + 2], ax
mov dword [ebp - 0x24c], 0x10
cmp dword [ebp - 0x240], 1
jge 0x1007fe52
push dword [ebp - 0x20c]
push str.Couldnt_bind_to__s
push dword [ebp - 0x210]
call fcn.10083b69
add esp, 0xc
push 0x2d
pop eax
jmp 0x10080015
jmp 0x1007fe86
cmp dword [ebp + 0x10], 2
jne 0x1007fe86
push 2
pop eax
mov ecx, dword [ebp - 0x228]
mov word [ecx], ax
push dword [ebp - 0x218]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x228]
mov word [ecx + 2], ax
mov dword [ebp - 0x24c], 0x10
push dword [ebp - 0x24c]
push dword [ebp - 0x254]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x1007ff5a
mov dword [ebp - 0x270], 0x80
push 0x80
push 0
lea eax, [ebp - 0x204]
push eax
call fcn.1003e130
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1007ff2e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x21c]
mov dword [eax + 0x4744], ecx
push dword [ebp - 0x21c]
push dword [ebp + 8]
call fcn.100b3c46
pop ecx
pop ecx
push eax
push dword [ebp - 0x21c]
push 0x100e94d4
push dword [ebp - 0x210]
call fcn.10083b69
add esp, 0x10
push 0x2d
pop eax
jmp 0x10080015
movzx eax, word [ebp - 0x218]
push eax
push str.Local_port:__hu_n
push dword [ebp - 0x210]
call fcn.100837f8
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax + 0x3a7], 1
xor eax, eax
jmp 0x10080015
mov eax, dword [ebp - 0x250]
dec eax
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jle 0x1007ffc3
movzx eax, word [ebp - 0x218]
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push dword [ebp - 0x210]
call fcn.100837f8
add esp, 0xc
mov ax, word [ebp - 0x218]
add ax, 1
mov word [ebp - 0x218], ax
mov eax, dword [ebp - 0x254]
movzx eax, word [eax]
cmp eax, 2
jne 0x1007ffc1
push dword [ebp - 0x218]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x228]
mov word [ecx + 2], ax
jmp 0x1007ffc5
jmp 0x1007ffca
jmp 0x1007fe86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x21c]
mov dword [eax + 0x4744], ecx
push dword [ebp - 0x21c]
push dword [ebp + 8]
call fcn.100b3c46
pop ecx
pop ecx
push eax
push dword [ebp - 0x21c]
push str.bind_failed_with_errno__d:__s
push dword [ebp - 0x210]
call fcn.10083b69
add esp, 0x10
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d588
mov esp, ebp
pop ebp
ret