Function at 0x10006f20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x254
push ebp
push esi
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [0x10032c38]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 1
jne 0x10006f5c
push ebp
call fcn.10003b90
mov dword [0x10032c38], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x268]
push edx
push 0x1002d5f8
push ecx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, ebp
je 0x10006fcb
push ebp
push 0x400
push 0x10039a80
push 0x400
push esi
push ebp
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x268]
push 0x10039a80
push str.getaddrinfo____s
push 0x100
push edx
call fcn.10016898
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
add esp, 0x254
ret
mov edi, dword [0x10039a64]
mov esi, dword [esp + 0xc]
cmp edi, ebp
je 0x10007003
cmp esi, ebp
je 0x10006ff9
mov eax, dword [esi + 0x18]
push eax
push edi
call fcn.10008070
add esp, 8
test eax, eax
je 0x1000705f
mov esi, dword [esi + 0x1c]
cmp esi, ebp
jne 0x10006fdd
mov esi, dword [esp + 0xc]
mov edi, dword [edi + 0x84]
cmp edi, ebp
jne 0x10006fd9
cmp esi, ebp
je 0x100071e2
mov eax, dword [0x10032c2c]
mov dword [esp + 0x10], esi
cmp eax, ebp
jne 0x100071db
mov eax, dword [0x10032c28]
mov dword [esp + 0x14], str.getaddrinfo
cmp eax, ebp
mov dword [esp + 0x18], 0x100026b0
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x100033f0
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], 0x10002660
je 0x1000706f
mov eax, dword [0x1002d25c]
jmp 0x100071d6
mov eax, dword [edi + 0x80]
pop edi
pop esi
pop ebp
add esp, 0x254
ret
push ebx
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100071c6
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
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 + 0x50]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov esi, eax
cmp esi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x1000710d
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10007185
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
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 + 0x50]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x100071c6
push str.getaddrinfo
push esi
call ebp
test eax, eax
jne 0x10007185
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100071c6
mov ecx, dword [0x100201f0]
xor ebx, ebx
test ecx, ecx
jle 0x100071b0
lea edi, [esp + 0x1c]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebp
test eax, eax
mov dword [edi], eax
je 0x1000717c
mov ecx, dword [0x100201f0]
inc ebx
add edi, 8
cmp ebx, ecx
jl 0x10007195
xor eax, eax
test ecx, ecx
jle 0x100071c6
mov edx, dword [esp + eax*8 + 0x1c]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x100071b6
mov eax, dword [0x1002d25c]
mov dword [0x10032c28], 1
pop ebx
mov dword [0x10032c2c], eax
mov ecx, dword [esp + 0x10]
push ecx
call eax
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x254
ret