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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472b90
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x48c0d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x48d62c]
mov edx, dword [eax + 0xc]
mov ecx, 0x48d62c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], 0
mov eax, dword [0x48d62c]
mov edx, dword [eax + 0xc]
mov ecx, 0x48d62c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea esi, [esp + 0x1c]
call fcn.004152d0
mov byte [esp + 0x48], 2
mov ecx, dword [eax]
push ecx
push str._sLog
lea edi, [esp + 0x1c]
call fcn.00407b40
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.004152d0
mov byte [esp + 0x48], 3
movzx ecx, word [esp + 0x38]
movzx edx, word [esp + 0x36]
mov eax, dword [eax]
push ecx
movzx ecx, word [esp + 0x38]
push edx
movzx edx, word [esp + 0x3a]
push ecx
movzx ecx, word [esp + 0x3a]
push edx
movzx edx, word [esp + 0x3c]
push ecx
push edx
push eax
push str._sLog_04d__02d__02d__02d_02d_02d.dmp
lea edi, [esp + 0x38]
call fcn.00407b40
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407a3b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, ebx
call fcn.004075d0
cmp dword [0x48ec2c], 0
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
je 0x407ab5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
neg ebx
push 0
sbb ebx, ebx
lea ecx, [esp + 0x28]
and ebx, ecx
push ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x48ec2c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push edx
call fcn.00457a6e
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x48], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ae3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret