Function at 0x4313a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4c56c0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
cmp byte [ebp + 0x32], 0
je 0x431498
lea ecx, [ebp + 0x50]
call fcn.0040a850
test eax, eax
jne 0x431498
mov eax, ebp
call fcn.00431140
test al, al
je 0x431498
lea eax, [ebp + 0x88]
lea edi, [esp + 0x14]
call fcn.00432770
mov esi, dword [0x4fb43c]
lea ecx, [esp + 0x24]
call fcn.00403f30
push 0x4fb424
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], esi
call fcn.00403ea0
mov ecx, edi
call fcn.00403f10
test al, al
je 0x431453
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00403ef0
test al, al
jne 0x431458
call fcn.0046d2c9
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x28]
je 0x431492
lea esi, [esp + 0x14]
call fcn.00432a70
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x43147e
cmp eax, 0xffffffff
je 0x43147e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00432470
push ebp
call fcn.00431200
mov esi, dword [0x4fb43c]
lea ecx, [esp + 0x24]
call fcn.00403f30
push 0x4fb424
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], esi
call fcn.00403ea0
lea ebx, [ebp + 0x88]
mov eax, ebx
lea edi, [esp + 0x14]
call fcn.00432770
mov esi, eax
mov ecx, esi
call fcn.00403f10
test al, al
je 0x4314e7
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00403ef0
test al, al
jne 0x4314ec
call fcn.0046d2c9
mov eax, dword [esi + 4]
cmp eax, dword [esp + 0x28]
jne 0x431563
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push ebx
call fcn.00402c00
lea esi, [esp + 0x70]
call fcn.00435350
add esp, 0x20
mov esi, eax
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0xa0], 0
call fcn.00402c00
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0x30]
push edx
lea edi, [esp + 0x28]
mov byte [esp + 0xa0], 1
call fcn.00432320
lea ecx, [esp + 0x30]
call fcn.00402c40
lea ecx, [esp + 0x50]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00402c40
mov eax, ebx
lea edi, [esp + 0x1c]
call fcn.00432770
mov ecx, edi
call fcn.00403f10
test al, al
jne 0x43157e
call fcn.0046d2c9
lea ecx, [esp + 0x1c]
call fcn.00403ec0
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x18]
jne 0x431595
call fcn.0046d2c9
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x4315a9
cmp eax, 0xffffffff
jne 0x43164e
mov edi, ebx
lea esi, [esp + 0x70]
call fcn.0042e3d0
mov ecx, esi
call fcn.00402e30
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4315d7
push eax
mov ecx, esi
call fcn.00402e30
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov al, byte [ebp + 0x30]
xor ecx, ecx
test al, al
sete cl
push 0
push 0x80
lea ecx, [ecx + ecx + 2]
push ecx
push 0
push 1
push 0xc0000000
mov ecx, ebx
call fcn.00402e30
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x1c]
call fcn.00403f10
test al, al
jne 0x431625
call fcn.0046d2c9
lea ecx, [esp + 0x1c]
call fcn.00403ec0
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0x18]
jne 0x43163c
call fcn.0046d2c9
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x70]
mov dword [eax + 0x28], esi
call fcn.00402c40
mov eax, esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0046da8a
add esp, 0x8c
ret 4