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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568f45
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x608514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x260], eax
cmp dword [eax], 0
je 0x4314e1
mov al, 1
jmp 0x431708
lea ecx, [ebp - 0x254]
call fcn.004042c0
push 0x20a
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4316e9
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431530
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.004107e0
push 0x12
push str.Temp2345_Crashes
lea ecx, [ebp - 0x254]
call fcn.004107e0
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4315a8
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
push 0
cmovae eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4316e9
push 0x100
call fcn.0054cb4f
mov edi, eax
add esp, 4
mov dword [ebp - 0x25c], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4315d3
xor eax, eax
mov word [edi], ax
mov word [edi + 0x80], ax
jmp 0x4315d5
xor edi, edi
push str.fulldump
push 0x40
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push edi
call esi
push 0xa
push 0x10
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
mov eax, dword [ebp - 0x260]
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
push dword [eax + 0x1c]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x80]
push 0x40
push eax
call esi
push 0xc8
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], 1
call fcn.0054bee4
mov edx, eax
add esp, 0x2c
mov dword [ebp - 0x25c], edx
mov edi, dword [ebp - 0x260]
lea esi, [edi + 4]
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x431654
mov esi, dword [esi]
lea ecx, [edx + 0x10]
mov dword [edx + 0xc], 0
call fcn.004042c0
lea ecx, [edx + 0x28]
call fcn.004042c0
lea ecx, [edx + 0x40]
call fcn.004042c0
push 0x18
mov dword [edx + 0xc0], 0
mov dword [edx + 0xc4], 0
call fcn.0054bee4
mov ecx, dword [ebp - 0x25c]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ecx + 0xc0], eax
lea eax, [ebp - 0x268]
push esi
push eax
sub esp, 0x20
lea eax, [ebp - 0x254]
push eax
call fcn.004d190e
mov byte [ebp - 4], 0
mov esi, dword [edi]
mov eax, dword [ebp - 0x25c]
mov dword [edi], eax
test esi, esi
je 0x4316e0
mov ecx, esi
call fcn.004d1b95
push 0xc8
push esi
call fcn.0054bf14
add esp, 8
mov byte [ebp - 0x255], 1
jmp 0x4316f0
mov byte [ebp - 0x255], 0
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0xffffffff
call fcn.004041c0
mov al, byte [ebp - 0x255]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bed3
mov esp, ebp
pop ebp
ret