Function at 0x1006aba0
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
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
add esp, 0xc
cmp byte [esp + 0x238], 0
je 0x1006adc4
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 0x1006aceb
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 0x1006acdf
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1006ac83
mov ecx, closesocket
mov eax, esi
cmp word [eax], 0
je 0x1006acac
add eax, 2
sub ecx, 1
jne 0x1006ac75
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 0x1006ac83
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006acb5
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 0x1006ae03
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 0x1006ad07
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]
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006ad30
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 0x1006ad60
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 0x1006ad83
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 0x1006ada6
sub eax, ecx
sub esi, eax
sub esi, 1
push esi
push str.LocalLow
push edi
call ebp
add esp, 0xc
jmp 0x1006ae03
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 0x1006ade0
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