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

Disassembly:
sub esp, 0x220
mov eax, dword [0x100cc8ec]
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 0x1006a715
sub eax, edx
je 0x1006a737
push esi
push 0x100a14fc
push edi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
jmp 0x1006a963
cmp byte [esp + 0x238], 0
je 0x1006a924
mov al, 0x16
push 0x100ac810
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 0x1006a846
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 0x1006a83a
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1006a7de
mov ecx, closesocket
mov eax, esi
nop
cmp word [eax], 0
je 0x1006a807
add eax, 2
sub ecx, 1
jne 0x1006a7d0
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.10090524
add esp, 0x220
ret
test ecx, ecx
je 0x1006a7de
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006a810
sub eax, edx
sar eax, 1
push eax
push esi
push edi
push 0xfde9
call fcn.1007db60
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 0x1006a963
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 0x1006a862
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
push edi
push 0xfde9
call fcn.1007db60
mov eax, edi
add esp, 0x10
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006a890
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 0x100a179c
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 0x1006a8c0
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 0x1006a8e3
sub eax, ecx
mov ecx, esi
sub ecx, eax
sub ecx, 1
push ecx
push 0x100a179c
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 0x1006a906
sub eax, ecx
sub esi, eax
sub esi, 1
push esi
push str.LocalLow
push edi
call ebp
add esp, 0xc
jmp 0x1006a963
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 0x1006a940
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
push eax
push edi
push 0xfde9
call fcn.1007db60
add esp, 0x10
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.10090524
add esp, 0x220
ret