Function at 0x1006aef0
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x220
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x230]
push 0x206
lea eax, [esp + 0x26]
push 0
push eax
mov word [esp + 0x2c], 0
call sub.MSVCR80.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1006af35
sub eax, edx
je 0x1006af57
push esi
push 0x100a24fc
push edi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
jmp 0x1006b183
cmp byte [esp + 0x238], 0
je 0x1006b144
mov al, 0x16
push 0x100ad998
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xa520a1a4
mov word [esp + 0x18], 0x1780
mov word [esp + 0x1a], 0x4ff6
mov byte [esp + 0x1c], 0xbd
mov byte [esp + 0x1d], 0x18
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], 0x73
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0xc5
mov byte [esp + 0x22], 0xaf
mov byte [esp + 0x23], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
test ebp, ebp
je 0x1006b066
push str.SHGetKnownFolderPath
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call eax
test eax, eax
jl 0x1006b05a
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1006affe
mov ecx, closesocket
mov eax, esi
nop
cmp word [eax], 0
je 0x1006b027
add eax, 2
sub ecx, 1
jne 0x1006aff0
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.10090e24
add esp, 0x220
ret
test ecx, ecx
je 0x1006affe
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006b030
sub eax, edx
sar eax, 1
push eax
push esi
push edi
push 0xfde9
call fcn.1007e4c0
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1006b183
push 0x208
lea ecx, [esp + 0x24]
push ecx
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006b082
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
push edi
push 0xfde9
call fcn.1007e4c0
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006b0b0
mov esi, dword [esp + 0x234]
mov ebp, dword [sym.imp.MSVCR80.dll_strncat]
sub eax, ecx
mov ecx, esi
sub ecx, eax
sub ecx, 1
push ecx
push 0x100a279c
push edi
call ebp
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006b0e0
sub eax, ecx
mov edx, esi
sub edx, eax
sub edx, 1
push edx
push str.AppData
push edi
call ebp
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006b103
sub eax, ecx
mov ecx, esi
sub ecx, eax
sub ecx, 1
push ecx
push 0x100a279c
push edi
call ebp
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006b126
sub eax, ecx
sub esi, eax
sub esi, 1
push esi
push str.LocalLow
push edi
call ebp
add esp, 0xc
jmp 0x1006b183
push 0
push 0x1c
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006b160
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
push eax
push edi
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.10090e24
add esp, 0x220
ret