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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dc91
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x44]
push esi
push eax
mov dword [esp + 0x18], 0
call sym.iImportLib.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_elex::strings::to_lower_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
xor eax, eax
push 0xffffffffffffffff
mov dword [esp + 0x27c], 0
push eax
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.10008c80
push 0xf
push 0
push str._commonappdata_
lea ecx, [esp + 0x50]
mov byte [esp + 0x284], 1
call fcn.10008750
test eax, eax
jne 0x1006d589
push 0x208
push eax
lea eax, [esp + 0x64]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x5c]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [esp + 0x5c], 0
jne 0x1006d548
xor ecx, ecx
jmp 0x1006d55f
lea ecx, [esp + 0x5c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d550
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x60]
push eax
push 0xf
push 0
lea ecx, [esp + 0x24]
call fcn.1000e060
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.1000f9e0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x1006d770
push 0x11
push 0
push str._systemdirectory_
lea ecx, [esp + 0x50]
call fcn.10008750
test eax, eax
jne 0x1006d5b2
push 8
push str._windir_
push 0x11
push eax
lea ecx, [esp + 0x24]
call fcn.1000e060
push 0x11
push 0
push str._locallowappdata_
lea ecx, [esp + 0x50]
call fcn.10008750
test eax, eax
jne 0x1006d66c
push 0x208
push eax
lea eax, [esp + 0x64]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x5c]
push 0
push 0x28
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x100ebf6c]
test eax, eax
jne 0x1006d60c
push eax
push 0x100ebf6c
call sym.iImportLib.dll_int___cdecl_elex::os::ISAFE_GetOSVersion_unsigned_long_int___unsigned_long_int__
mov eax, dword [0x100ebf6c]
add esp, 8
and eax, 0xff00
cmp eax, 0x1500
lea eax, [esp + 0x5c]
jb 0x1006d623
push str.AppDataLocalLow
jmp 0x1006d628
push str.Application_DataLocalLow
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [esp + 0x5c], 0
jne 0x1006d646
xor ecx, ecx
push ecx
lea eax, [esp + 0x60]
push eax
push 0x11
jmp 0x1006d567
lea ecx, [esp + 0x5c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006d650
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x60]
push eax
push 0x11
jmp 0x1006d567
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
push eax
push 0x400
lea ecx, [esp + 0x34]
mov byte [esp + 0x280], 2
call fcn.1006daa0
cmp dword [esp + 0x40], 8
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
cmp dword [esp + 0x28], 8
push 0x400
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1006d6cf
lea eax, [esp + 0x14]
jmp 0x1006d73f
cmp esi, 0x400
jbe 0x1006d708
push esi
lea ecx, [esp + 0x30]
call fcn.1006da70
cmp dword [esp + 0x40], 8
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
cmp dword [esp + 0x28], 8
push esi
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov eax, dword [esp + 0x3c]
lea ecx, [esi - 1]
cmp ecx, eax
ja 0x1006d72d
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x3c], ecx
mov word [eax + ecx*2], dx
jmp 0x1006d73b
sub ecx, eax
push 0
push ecx
lea ecx, [esp + 0x34]
call fcn.1006daa0
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.1000f9e0
cmp dword [esp + 0x40], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1006d75d
push dword [esp + 0x2c]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 7
cmp dword [esp + 0x28], 8
jb 0x1006d780
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x58], 8
mov word [esp + 0x14], ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 7
jb 0x1006d7a3
push dword [esp + 0x44]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret