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

Disassembly:
push 0x280
mov eax, 0x595baf
call fcn.004103bb
lea ecx, [ebp - 0x279]
call fcn.00421ac0
xor ebx, ebx
lea ecx, [ebp - 0x279]
mov dword [ebp - 4], ebx
call fcn.00402cc2
push 0x59a528
push str.9992e2
lea eax, [ebp - 0x278]
push str.Setting
push eax
call fcn.00403fef
mov ecx, eax
call fcn.00413333
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, 0x59ab48
mov dword [ebp - 0x21c], 7
push esi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
call fcn.00433f51
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.00401c7b
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.00417f8d
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
push ebx
push 1
call fcn.00401b31
mov esi, dword [ebp - 0x288]
mov edi, dword [ebp - 0x284]
cmp esi, edi
je 0x406208
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
lea ecx, [ebp - 0x260]
call fcn.00401658
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.00430680
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call ebx
test eax, eax
je 0x406099
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x405f8d
lea eax, [ebp - 0x218]
push eax
call fcn.00433f51
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401c7b
push 0x59a69c
mov byte [ebp - 4], 5
call fcn.00433f51
pop ecx
push eax
push 0x59a69c
lea ecx, [ebp - 0x230]
call fcn.00402595
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.004024f6
push 0x59a6a0
call fcn.00433f51
pop ecx
push eax
push 0x59a6a0
lea ecx, [ebp - 0x230]
call fcn.00402595
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 0x406086
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041dad8
push 0x59a724
mov byte [ebp - 4], 6
call fcn.00433f51
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
push 0
push 0x59a724
call fcn.00406e2f
cmp eax, 0xffffffff
je 0x406077
sub esp, 0x18
lea eax, [ebp - 0x230]
mov ecx, esp
push eax
call fcn.00401658
lea ecx, [ebp - 0x279]
call fcn.00403431
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401b31
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00401b31
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call ebx
test eax, eax
je 0x4061e8
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x4060e0
lea eax, [ebp - 0x218]
push eax
call fcn.00433f51
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401c7b
push 0x59a69c
mov byte [ebp - 4], 7
call fcn.00433f51
pop ecx
push eax
push 0x59a69c
lea ecx, [ebp - 0x230]
call fcn.00402595
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.004024f6
push 0x59a6a0
call fcn.00433f51
pop ecx
push eax
push 0x59a6a0
lea ecx, [ebp - 0x230]
call fcn.00402595
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 0x4061d9
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041dad8
push 0x59a724
mov byte [ebp - 4], 8
call fcn.00433f51
add esp, 0xc
lea ecx, [ebp - 0x248]
push eax
push 0
push 0x59a724
call fcn.00406e2f
cmp eax, 0xffffffff
je 0x4061ca
sub esp, 0x18
lea eax, [ebp - 0x230]
mov ecx, esp
push eax
call fcn.00401658
lea ecx, [ebp - 0x279]
call fcn.00403431
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00401b31
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401b31
push 0
push 1
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00401b31
add esi, 0x18
cmp esi, edi
jne 0x405f20
xor ebx, ebx
lea ecx, [ebp - 0x288]
call fcn.00406def
push ebx
push 1
lea ecx, [ebp - 0x278]
call fcn.00401b31
lea ecx, [ebp - 0x279]
call fcn.004f60b0
call fcn.00410376
ret