Function at 0x403b6a
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push 0x230
mov eax, 0x54c308
call fcn.00521fa8
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x234], ebx
call fcn.005237f0
add esp, 0xc
mov dword [ebp - 0x238], edi
call fcn.0041a1a4
push eax
lea ecx, [ebp - 0x224]
call fcn.00402166
mov dword [ebp - 4], edi
call fcn.0041a1a4
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402166
mov byte [ebp - 4], 1
call fcn.0041a1a4
push eax
lea ecx, [ebp - 0x22c]
call fcn.00402166
mov byte [ebp - 4], 2
call fcn.0041a1a4
push eax
lea ecx, [ebp - 0x228]
call fcn.00402166
mov byte [ebp - 4], 3
call fcn.0041a1a4
push eax
lea ecx, [ebp - 0x220]
call fcn.00402166
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 4
push 0x104
mov dword [ebp - 0x23c], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x403c7a
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040218e
xor eax, eax
inc eax
call fcn.0052202b
ret
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push str._sTempDir_
push eax
call fcn.00401c08
mov esi, dword [ebp - 0x220]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x403cb5
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.00401ee8
mov esi, dword [ebp - 0x220]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x12000000
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x238]
push eax
mov ecx, ebx
call fcn.004018a8
push eax
call fcn.0041eda1
test eax, eax
jne 0x403d47
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.0040218e
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040218e
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040218e
mov eax, edi
jmp 0x403c74
cmp dword [ebp - 0x238], 0x1001
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x403d97
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 4], 1
jle 0x403d79
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00401ee8
mov eax, dword [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x403d97
lea eax, [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
push eax
call fcn.00401c1c
jmp 0x403d00
push 0x2f
push dword [ebp - 0x21c]
call fcn.0051fc0e
pop ecx
pop ecx
cmp eax, edi
je 0x403df6
mov ecx, dword [ebp - 0x21c]
sub eax, ecx
sar eax, 1
mov edx, eax
cmp edx, 0xffffffff
je 0x403df6
mov eax, dword [ecx - 0xc]
sub eax, edx
dec eax
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004017f2
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.00401c1c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040218e
push edi
push 0x3f
lea ecx, [ebp - 0x21c]
call fcn.00401627
cmp eax, 0xffffffff
je 0x403e3e
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401842
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00401c1c
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.0040218e
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], edi
jne 0x403e6b
push edi
call fcn.00520c51
push edx
push eax
lea eax, [ebp - 0x21c]
push str._I64d.exe
push eax
call fcn.00401c08
mov eax, dword [ebp - 0x21c]
add esp, 0x14
push dword [eax - 0xc]
lea ecx, [ebp - 0x220]
push eax
call fcn.004019f0
mov esi, dword [ebp - 0x220]
cmp dword [esi - 4], 1
jle 0x403e9a
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.00401ee8
mov esi, dword [ebp - 0x220]
push esi
call ebx
test eax, eax
je 0x403ec2
cmp dword [esi - 4], 1
jle 0x403ebb
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.00401ee8
mov esi, dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x220]
jmp 0x403d86