Function at 0x407c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c341
mov eax, dword fs:[0]
push eax
sub esp, 0x6d4
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5cc], edx
mov edi, ecx
lea ecx, [ebp - 0x134]
call fcn.00406000
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call esi
test eax, eax
je 0x407d88
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x105
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0x105
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call esi
test eax, eax
je 0x407d88
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x44ebcc
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, edi
call fcn.00401e30
xor al, al
mov byte [ebp - 0x5c5], al
jmp 0x40806b
lea ecx, [ebp - 0x134]
call fcn.00406330
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0
cmove eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x258]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.00402110
mov byte [ebp - 4], 1
cmp byte [0x45faaa], 0
jne 0x407e12
push 0x114
lea eax, [ebp - 0x6e0]
mov byte [0x45faaa], 1
push 0
push eax
call fcn.00424350
add esp, 0xc
lea ecx, [ebp - 0x6e0]
xor edx, edx
call fcn.00407760
cmp dword [ebp - 0x6dc], 6
jb 0x407e06
mov byte [0x45faab], 1
jmp 0x407e1f
mov byte [0x45faab], 0
jmp 0x407fbc
cmp byte [0x45faab], 0
je 0x407fbc
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0x5c
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.004240d0
add esp, 8
test eax, eax
jne 0x407e5e
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
add eax, 4
jmp 0x407e61
add eax, 2
push eax
lea ecx, [ebp - 0x37c]
call fcn.00406180
push ecx
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 2
call fcn.00406240
test al, al
je 0x407f90
push 0x10
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x378], 0xf
call fcn.00406610
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
movups xmm0, xmmword [str.AppDataRoaming]
cmove eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x4a0]
movups xmmword [eax + 4], xmm0
movups xmm0, xmmword [0x44ec14]
movups xmmword [eax + 0x14], xmm0
call fcn.004020b0
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x258]
call fcn.00402bb0
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0
cmove eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x5c4]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.00402110
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.004024e0
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407f52
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x407f52
push eax
call fcn.00429f77
add esp, 4
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x258]
call fcn.00402540
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407f90
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x407f90
push eax
call fcn.00429f77
add esp, 4
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407fbc
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x407fbc
push eax
call fcn.00429f77
add esp, 4
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
mov edi, 0x44a78c
cmove eax, dword [ebp - 0x250]
add eax, 4
cmovne edi, eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407fe0
mov esi, dword [ebp - 0x5cc]
sub ecx, edx
sar ecx, 1
mov dword [esi + 4], ecx
lea eax, [ecx + 1]
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x5cc], eax
call fcn.00406610
cmp byte [esi + 0x11c], 0
je 0x408018
add esi, 0xc
jmp 0x40801b
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0x5cc]
add eax, eax
push eax
lea eax, [esi + 4]
push edi
push eax
call fcn.00423a60
add esp, 0xc
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x13c], 0
mov al, 1
mov byte [ebp - 0x5c5], al
jne 0x40806b
mov ecx, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
cmp ecx, edx
je 0x40806b
push ecx
call fcn.00429f77
mov al, byte [ebp - 0x5c5]
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40809a
mov ecx, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
cmp ecx, edx
je 0x40809a
push ecx
call fcn.00429f77
mov al, byte [ebp - 0x5c5]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422505
mov esp, ebp
pop ebp
ret