Function at 0x1000f240
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x244
test eax, eax
je 0x1000f25c
push eax
push str.no_mask__s_supported
call fcn.1000ab20
add esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x258]
push edi
call fcn.10015e40
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x24], esi
jne 0x1000f288
push edi
push str.invalid_ip6_address__s
call fcn.1000ab20
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000f29d
push edi
push str._s_resolved_to_multiple_address
call fcn.1000ab20
add esp, 8
mov ebp, dword [esi + 0x18]
mov esi, dword [esp + 0x260]
add ebp, 8
cmp esi, 0x80
jbe 0x1000f2c4
push 0x80
push str.mask_length_must_be____u
call fcn.1000ab20
add esp, 8
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
cdq
and edx, 7
add edx, eax
or eax, 0xffffffff
sar edx, 3
mov ecx, edx
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x1000f306
dec eax
or eax, 0xfffffff8
inc eax
je 0x1000f317
mov ecx, 8
sub ecx, eax
or al, 0xff
shl al, cl
mov byte [esp + edx + 0x10], al
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
not ecx
test eax, ecx
jne 0x1000f34b
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
not edx
test edx, eax
jne 0x1000f34b
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
not eax
test eax, ecx
jne 0x1000f34b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
not ecx
test ecx, eax
je 0x1000f361
mov edx, dword [esp + 0x258]
push esi
push edx
push str.non_network_bits_set_in___s__d_
call fcn.1000ab20
add esp, 0xc
mov al, byte [esp + 0x264]
cmp al, 1
jbe 0x1000f388
cmp al, 2
je 0x1000f39d
push str.invalid_qualifier_against_IPv6_address
call fcn.1000ab20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
cmp esi, 0x80
je 0x1000f39d
push str.Mask_syntax_for_networks_only
call fcn.1000ab20
add esp, 4
mov eax, dword [esp + 0x266]
mov ecx, dword [esp + 0x265]
and eax, 0xff
and ecx, 0xff
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
call fcn.1000e180
mov dword [esp + 0x30], eax
mov eax, dword [0x10032c2c]
add esp, 0x10
test eax, eax
jne 0x1000f57e
mov eax, dword [0x10032c28]
mov dword [esp + 0x28], str.getaddrinfo
test eax, eax
mov dword [esp + 0x2c], 0x100026b0
mov dword [esp + 0x30], str.getnameinfo
mov dword [esp + 0x34], 0x100033f0
mov dword [esp + 0x38], str.freeaddrinfo
mov dword [esp + 0x3c], 0x10002660
jne 0x1000f574
lea eax, [esp + 0x14c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000f56a
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x40]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000f4b1
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x1000f529
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x1000f56a
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x1000f529
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000f56a
mov ecx, dword [0x100201f0]
xor ebx, ebx
test ecx, ecx
jle 0x1000f554
lea edi, [esp + 0x2c]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x1000f520
mov ecx, dword [0x100201f0]
inc ebx
add edi, 8
cmp ebx, ecx
jl 0x1000f539
xor eax, eax
test ecx, ecx
jle 0x1000f56a
mov edx, dword [esp + eax*8 + 0x2c]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x1000f55a
mov dword [0x10032c28], 1
mov eax, dword [0x1002d25c]
mov dword [0x10032c2c], eax
mov ecx, dword [esp + 0x24]
push ecx
call eax
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret