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

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.004760e0
push 0xffffffffffffffff
push 0x4ae9b3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x1800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], edi
cmp dword [edi + 0x14], esi
je 0x4327e0
push 0x800
lea eax, [ebp + 0x800]
push esi
push eax
call fcn.00474a10
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 1
push 0x10
lea eax, [ebp + 0x800]
push eax
push esi
call ebx
push 0x88
lea ecx, [ebp - 0x10]
call fcn.00432299
push dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x800]
push eax
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [edi + 8]
call fcn.0045ff1d
mov edi, 0x8a
test eax, eax
je 0x432675
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43271e
lea eax, [ebp + 0x800]
push eax
call fcn.0046a6bd
pop ecx
jmp 0x43271e
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push 1
push 0x19
lea eax, [ebp]
push eax
push 0
call ebx
push 0x88
lea ecx, [ebp - 0x10]
call fcn.00432299
push dword [eax]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4326d0
lea eax, [ebp]
push eax
call fcn.0046a6bd
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call fcn.0045e466
mov ecx, eax
call fcn.0043cb36
test eax, eax
jne 0x43271e
push edi
lea ecx, [ebp - 0x10]
call fcn.00432299
mov eax, dword [eax]
push 1
xor ecx, ecx
push ecx
lea edx, [ebp + 0x800]
push edx
push ecx
push 0x4b7f78
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00431422
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004029d4
push 0x800
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push 1
push 0x17
lea eax, [ebp + 0x1000]
push eax
push 0
call ebx
push 0x256
lea ecx, [ebp - 0x10]
call fcn.00432299
push dword [eax]
lea eax, [ebp + 0x1000]
push eax
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
push edi
lea ecx, [ebp - 0x10]
call fcn.00432299
push dword [eax]
lea eax, [ebp + 0x1000]
push eax
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
push 0x88
lea ecx, [ebp - 0x10]
call fcn.00432299
push dword [eax]
lea eax, [ebp + 0x1000]
push eax
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
push edi
lea ecx, [ebp - 0x18]
call fcn.00432299
xor ecx, ecx
inc ecx
push ecx
push 0
mov dword [ebp - 4], ecx
lea ecx, [ebp + 0x1000]
push ecx
mov ecx, dword [ebp - 0x14]
push 0
push 0x4b7f78
push dword [eax]
call fcn.00431422
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1800]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0x1804
leave
ret