Function at 0x402350
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1154
call fcn.005b5920
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1154]
mov ecx, 0x455
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x40238d
mov eax, dword [ebp + 8]
push eax
call fcn.005b3b30
add esp, 4
test eax, eax
ja 0x402394
xor al, al
jmp 0x4025c2
cmp dword [ebp + 0xc], 0
je 0x4023ab
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005b3b30
add esp, 4
cmp eax, 1
jae 0x4023e3
mov edx, dword [ebp + 8]
push edx
call fcn.005b3b30
add esp, 4
add eax, 0x10
cmp eax, 0xfff
jbe 0x4023c8
xor al, al
jmp 0x4025c2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1000
push ecx
call fcn.005b3a40
add esp, 8
jmp 0x4024a0
mov edx, dword [ebp + 0xc]
push edx
call fcn.005b3b30
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push eax
call fcn.005b3b30
add esp, 4
lea ecx, [esi + eax + 0x10]
cmp ecx, 0xfff
jbe 0x402410
xor al, al
jmp 0x4025c2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
add eax, 0x1000
push eax
call fcn.005b3a40
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005b3b30
add esp, 4
mov edx, dword [ebp - 4]
movsx eax, byte [edx + eax + 0xfff]
cmp eax, 0x5c
je 0x40245d
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005b3b30
add esp, 4
mov edx, dword [ebp - 4]
movsx eax, byte [edx + eax + 0xfff]
cmp eax, 0x2f
jne 0x402474
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005b3b30
add esp, 4
mov edx, dword [ebp - 4]
mov byte [edx + eax + 0xfff], 0
push 0x5d9380
mov eax, dword [ebp - 4]
add eax, 0x1000
push eax
call fcn.005b3a50
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x1000
push edx
call fcn.005b3a50
add esp, 8
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x1000]
cmp ecx, 0x5c
je 0x4024be
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x1000]
cmp eax, 0x2f
jne 0x4024f0
mov ecx, dword [ebp - 4]
add ecx, 0x1000
push ecx
lea edx, [ebp - 0x1004]
push edx
call fcn.005b3a40
add esp, 8
lea eax, [ebp - 0x1003]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1000
push ecx
call fcn.005b3a40
add esp, 8
mov esi, esp
lea edx, [ebp - 0x1014]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp esi, esp
call fcn.005b3c10
mov eax, dword [ebp - 0x100c]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x100e]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1012]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1014]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1000
push ecx
push str._s_04d__02d_02d__02d.log
lea edx, [ebp - 0x1004]
push edx
call fcn.005b5240
add esp, 0x1c
lea eax, [ebp - 0x1004]
push eax
push str._s.Bak
lea ecx, [ebp - 0x1114]
push ecx
call fcn.005b5240
add esp, 0xc
lea edx, [ebp - 0x1114]
push edx
lea eax, [ebp - 0x1004]
push eax
call fcn.005b58d0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x4025c0
cmp dword [ebp + 0xc], 0
je 0x4025c0
mov esi, esp
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.005b3c10
cmp eax, 0xffffffff
jne 0x4025c0
mov esi, esp
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, esp
call fcn.005b3c10
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x1154
cmp ebp, esp
call fcn.005b3c10
mov esp, ebp
pop ebp
ret 0xc