Function at 0x4067e8
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x280
mov eax, 0x596c7d
call fcn.00410ff3
lea ecx, [ebp - 0x279]
call fcn.004078e0
xor ebx, ebx
lea ecx, [ebp - 0x279]
mov dword [ebp - 4], ebx
call fcn.00403a64
push 0x59b670
push str.ef6866
lea eax, [ebp - 0x278]
push str.GDftSet
push eax
call fcn.00401519
mov ecx, eax
call fcn.00412b71
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
xor eax, eax
mov byte [ebp - 4], 2
mov esi, 0x59be90
mov dword [ebp - 0x21c], 7
push esi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00401f62
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0041a14e
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
push ebx
push 1
call fcn.00401bfd
mov esi, dword [ebp - 0x288]
mov edi, dword [ebp - 0x284]
cmp esi, edi
je 0x406bb1
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea ecx, [ebp - 0x260]
call fcn.00402647
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.00431720
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call ebx
test eax, eax
je 0x406a42
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x406936
lea eax, [ebp - 0x218]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401f62
push 0x59bb6c
mov byte [ebp - 4], 5
call fcn.00434fd1
pop ecx
push eax
push 0x59bb6c
lea ecx, [ebp - 0x230]
call fcn.00401cf3
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401c54
push 0x59bb70
call fcn.00434fd1
pop ecx
push eax
push 0x59bb70
lea ecx, [ebp - 0x230]
call fcn.00401cf3
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406a2f
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041fc8a
push 0x59baf0
mov byte [ebp - 4], 6
call fcn.00434fd1
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
push 0
push 0x59baf0
call fcn.0040778d
cmp eax, 0xffffffff
je 0x406a20
sub esp, 0x18
lea eax, [ebp - 0x230]
mov ecx, esp
push eax
call fcn.00402647
lea ecx, [ebp - 0x279]
call fcn.00404142
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401bfd
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00401bfd
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call ebx
test eax, eax
je 0x406b91
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x406a89
lea eax, [ebp - 0x218]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401f62
push 0x59bb6c
mov byte [ebp - 4], 7
call fcn.00434fd1
pop ecx
push eax
push 0x59bb6c
lea ecx, [ebp - 0x230]
call fcn.00401cf3
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401c54
push 0x59bb70
call fcn.00434fd1
pop ecx
push eax
push 0x59bb70
lea ecx, [ebp - 0x230]
call fcn.00401cf3
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b82
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041fc8a
push 0x59baf0
mov byte [ebp - 4], 8
call fcn.00434fd1
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
push 0
push 0x59baf0
call fcn.0040778d
cmp eax, 0xffffffff
je 0x406b73
sub esp, 0x18
lea eax, [ebp - 0x230]
mov ecx, esp
push eax
call fcn.00402647
lea ecx, [ebp - 0x279]
call fcn.00404142
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401bfd
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401bfd
push 0
push 1
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00401bfd
add esi, 0x18
cmp esi, edi
jne 0x4068c9
xor ebx, ebx
lea ecx, [ebp - 0x288]
call fcn.0040774d
push ebx
push 1
lea ecx, [ebp - 0x278]
call fcn.00401bfd
lea ecx, [ebp - 0x279]
call fcn.00434780
call fcn.00410fae
ret