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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x47f4bc]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x11c]
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00424100
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x11c]
add ecx, 0x38
call fcn.00415c50
push eax
call fcn.00446d30
add esp, 4
add eax, 1
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004445d4
add esp, 4
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.004446c0
add esp, 0xc
mov ecx, dword [ebp - 0x11c]
add ecx, 0x38
call fcn.00415c50
push eax
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00423f10
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422961
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422aed
xor eax, eax
mov word [ebp - 0x104], ax
xor ecx, ecx
mov dword [ebp - 0x102], ecx
mov dword [ebp - 0xfe], ecx
mov dword [ebp - 0xfa], ecx
mov word [ebp - 0xf6], cx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov word [ebp - 0xf4], ax
push 0xc6
push 0
lea ecx, [ebp - 0xf2]
push ecx
call fcn.004446c0
add esp, 0xc
movzx edx, word [ebp - 0xf8]
push edx
movzx eax, word [ebp - 0xfa]
push eax
movzx ecx, word [ebp - 0xfc]
push ecx
movzx edx, word [ebp - 0xfe]
push edx
movzx eax, word [ebp - 0x102]
push eax
movzx ecx, word [ebp - 0x104]
push ecx
push str._04d__02d__02d__02d:_02d:_02d
push 0x400
lea edx, [ebp - 0xf4]
push edx
call fcn.00423fb0
add esp, 0x24
push 0x46a3b0
mov ecx, dword [ebp - 0x11c]
add ecx, 0x38
call fcn.00415c50
push eax
call fcn.004475cb
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x422aed
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x11c]
cmp dword [eax + 0x3c], 0
je 0x422a6d
lea ecx, [ebp - 0xf4]
push ecx
push str._r_n_Start_Log:_s__n
mov edx, dword [ebp - 0x24]
push edx
call fcn.00447dbd
add esp, 0xc
mov eax, dword [ebp - 0x11c]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x11c]
add ecx, 0x20
call fcn.0041fcb0
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], 0
jmp 0x422a9c
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp - 0x108]
jge 0x422ad5
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 0x20
call fcn.0042a090
mov ecx, eax
call fcn.00415c50
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00447dbd
add esp, 8
jmp 0x422a8d
mov edx, dword [ebp - 0x24]
push edx
call fcn.00447d61
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call fcn.004472a5
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x422b0b
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x114]
push edx
call fcn.00446525
add esp, 4
mov ecx, dword [ebp - 0x11c]
call fcn.00422800
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00424140
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00444679
mov esp, ebp
pop ebp
ret