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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c72c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x24], 0
call fcn.004ba5ee
push eax
lea ecx, [ebp - 0x14]
call fcn.00432250
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0041bf90
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x431173
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x431164
mov dword [ebp - 0x2c], 0
jmp 0x431173
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00456690
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
jne 0x4311c4
push 0x4cd9d4
mov ecx, dword [ebp + 8]
call fcn.00401e40
mov edx, dword [ebp - 0x24]
or edx, 1
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
call fcn.0042ad20
mov eax, dword [ebp + 8]
jmp 0x431398
push 1
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004318c0
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
push 0x4d2938
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0049e21b
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
lea ecx, [ebp - 0x1c]
call fcn.0044f730
movzx edx, byte [ebp - 0x15]
test edx, edx
je 0x43124d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
sub edx, 1
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00419350
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00402240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044f730
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431267
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x4d327c
test edx, edx
jne 0x431279
mov dword [ebp - 0x54], 0
jmp 0x431289
push 0x4d327c
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
push 0x4d327c
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4312b4
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x4d3268
test eax, eax
jne 0x4312c6
mov dword [ebp - 0x58], 0
jmp 0x4312d6
push 0x4d3268
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0x4d3268
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431301
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x4d3250
test ecx, ecx
jne 0x431313
mov dword [ebp - 0x70], 0
jmp 0x431323
push 0x4d3250
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
push 0x4d3250
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43134e
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x14]
sub edx, 0x10
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.00402570
add esp, 4
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x10
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044f730
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4