Function at 0x10066380
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10129f37
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x101636d0]
xor eax, esp
mov dword [esp + 0x494], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101636d0]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4bc]
lea edi, [esp + 0x13c]
mov ebx, ecx
mov dword [esp + 0x14], eax
call fcn.10062500
xor ebp, ebp
mov ecx, 0x105
mov dword [esp + 0x4b4], ebp
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ecx
call fcn.100632f0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x1006640d
mov eax, dword [esp + 0x144]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add eax, 4
push eax
push ebp
push ebp
push 0x1a
push ebp
call edi
test eax, eax
je 0x1006650c
cmp dword [esp + 0x25c], ebp
je 0x10066436
mov dword [esp + 0x25c], ebp
mov ecx, 1
lea esi, [esp + 0x144]
mov dword [esp + 0x140], ebp
call fcn.100632f0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x10066466
mov eax, dword [esp + 0x144]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, 0x105
lea esi, [esp + 0x144]
mov dword [esp + 0x25c], ecx
call fcn.100632f0
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x1006649c
mov eax, dword [esp + 0x144]
add eax, 4
push eax
push 1
push ebp
push 0x1a
push ebp
call edi
test eax, eax
je 0x1006650c
lea ecx, [esp + 0x13c]
call fcn.100626a0
mov ecx, dword [esp + 0x14]
call fcn.100619a0
push 0x101441cc
push 0x1013c7e4
mov edx, eax
call fcn.10062cd0
add esp, 8
cmp byte [esp + 0x258], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x10066505
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x10066505
push eax
call fcn.100cf89b
add esp, 4
xor al, al
jmp 0x1006671b
lea edi, [esp + 0x13c]
call fcn.100629b0
cmp byte [esp + 0x258], 0
lea esi, [esp + 0x148]
jne 0x10066530
mov esi, dword [esp + 0x144]
lea edi, [esp + 0x260]
call fcn.10062500
lea eax, [esi + 4]
mov edx, edi
call fcn.10062710
mov byte [esp + 0x4b4], 0
cmp byte [esp + 0x37c], 0
lea eax, [esp + 0x26c]
jne 0x10066566
mov eax, dword [esp + 0x268]
lea ebp, [ebx + 0x254]
add eax, 4
mov edx, ebp
call fcn.10062710
cmp byte [esp + 0x37c], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x260], esi
jne 0x100665a7
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x100665a7
push eax
call fcn.100cf89b
add esp, 4
cmp byte [ebx], 0
je 0x100666ed
mov eax, ebp
call fcn.10060b00
push eax
lea edi, [esp + 0x264]
call fcn.10062630
mov ecx, str.Application_Data
mov eax, edi
mov byte [esp + 0x4b4], 2
call fcn.100627f0
test al, al
je 0x100666bc
mov eax, str.AppDataRoaming
mov edx, edi
call fcn.10062710
lea ecx, [esp + 0x384]
call fcn.1005f360
push ebp
lea ebx, [esp + 0x388]
mov byte [esp + 0x4b8], 3
call fcn.10060ca0
cmp byte [esp + 0x37c], 0
lea esi, [esp + 0x26c]
jne 0x10066625
mov esi, dword [esp + 0x268]
lea edi, [esp + 0x18]
call fcn.10062500
lea eax, [esi + 4]
mov edx, edi
call fcn.10062710
mov eax, edi
lea esi, [esp + 0x384]
call fcn.1005fa30
cmp byte [esp + 0x134], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x18], esi
jne 0x1006666e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x1006666e
push eax
call fcn.100cf89b
add esp, 4
cmp byte [esp + 0x4a0], 0
lea eax, [esp + 0x390]
jne 0x10066686
mov eax, dword [esp + 0x38c]
add eax, 4
mov edx, ebp
call fcn.10062710
cmp byte [esp + 0x4a0], 0
mov dword [esp + 0x384], esi
jne 0x100666bc
mov eax, dword [esp + 0x38c]
lea ecx, [esp + 0x390]
cmp eax, ecx
je 0x100666bc
push eax
call fcn.100cf89b
add esp, 4
cmp byte [esp + 0x37c], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x260], esi
jne 0x100666ed
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
je 0x100666ed
push eax
call fcn.100cf89b
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], esi
jne 0x10066719
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x10066719
push eax
call fcn.100cf89b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.100cf604
add esp, 0x4a4
ret 4