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

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.00476c90
push 0xffffffffffffffff
push 0x4af4c3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4f3bd0]
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 0x43292b
push 0x800
lea eax, [ebp + 0x800]
push esi
push eax
call fcn.00475570
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.004323e4
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.00402870
mov ecx, dword [edi + 8]
call fcn.0046107c
mov edi, 0x8a
test eax, eax
je 0x4327c0
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x432869
lea eax, [ebp + 0x800]
push eax
call fcn.0046b0a1
pop ecx
jmp 0x432869
push 0x800
lea eax, [ebp]
push 0
push eax
call fcn.00475570
add esp, 0xc
push 1
push 0x19
lea eax, [ebp]
push eax
push 0
call ebx
push 0x88
lea ecx, [ebp - 0x10]
call fcn.004323e4
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.00402870
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43281b
lea eax, [ebp]
push eax
call fcn.0046b0a1
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
call fcn.0045f45e
mov ecx, eax
call fcn.0043cc69
test eax, eax
jne 0x432869
push edi
lea ecx, [ebp - 0x10]
call fcn.004323e4
mov eax, dword [eax]
push 1
xor ecx, ecx
push ecx
lea edx, [ebp + 0x800]
push edx
push ecx
push 0x4b9318
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004315a1
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402870
push 0x800
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.00475570
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.004323e4
push dword [eax]
lea eax, [ebp + 0x1000]
push eax
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
push edi
lea ecx, [ebp - 0x10]
call fcn.004323e4
push dword [eax]
lea eax, [ebp + 0x1000]
push eax
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
push 0x88
lea ecx, [ebp - 0x10]
call fcn.004323e4
push dword [eax]
lea eax, [ebp + 0x1000]
push eax
push eax
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
push edi
lea ecx, [ebp - 0x18]
call fcn.004323e4
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 0x4b9318
push dword [eax]
call fcn.004315a1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402870
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.004755ea
add ebp, 0x1804
leave
ret