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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43229e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00427ca0
mov dword [ebp - 4], 0
push str.9590
lea ecx, [ebp - 0x14]
call fcn.004300a4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
push 0x435bd4
push 0x43f5a8
lea ecx, [ebp - 0x68]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x20]
push ecx
call sub.MFC42.DLL_operator_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x414416
push 0
lea ecx, [ebp - 0x20]
call fcn.00408e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x4360e0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x70]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xcc]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x6c], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x6c]
and edx, 0xff
test edx, edx
je 0x4144b9
push 0
push 0x4360e0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x74]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xd4]
call fcn.00408e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
push 0x4360dc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xdc]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x78], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x78]
and eax, 0xff
test eax, eax
je 0x41455b
push 0
push 0x4360dc
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x80]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xe4]
call fcn.00408e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 8], 1
jne 0x414570
push 0x4360e0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
jmp 0x41457d
push 0x4360dc
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
push 0x4360d8
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x88]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xec]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x84], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x84]
and ecx, 0xff
test ecx, ecx
je 0x414632
push 0
push 0x4360d8
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x8c]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xf4]
call fcn.00408e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CString::CString
push 0x4360d4
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x94]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xfc]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x90], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x90]
and edx, 0xff
test edx, edx
je 0x4146e7
push 0
push 0x4360d4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x98]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x104]
call fcn.00408e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push str._sz_d
lea edx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push str._sx_d
lea edx, [ebp - 0x1c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41473d
push 0
lea ecx, [ebp - 0x18]
call fcn.00408e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00408e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x414761
push 0
lea ecx, [ebp - 0x1c]
call fcn.00408e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0xa4]
push eax
call sub.MFC42.DLL_COleDateTime::GetTickCount
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408f30
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_COleDateTime::GetSecond
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_COleDateTime::GetMinute
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_COleDateTime::GetHour
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_COleDateTime::GetDay
push eax
push str._d_d_d_d.txt
lea ecx, [ebp - 0x30]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x38], 0x12
mov dword [ebp - 0x3c], 0x1b
mov dword [ebp - 0x40], 0x10
cmp dword [ebp + 8], 1
jne 0x4147ee
mov dword [ebp - 0x38], 0xd
mov dword [ebp - 0x3c], 0x17
mov dword [ebp - 0x34], 6
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x48], 0
jmp 0x41480c
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [0x43f0d4]
jge 0x414879
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
jmp 0x414828
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x34]
cmp dword [ebp - 0x4c], eax
jge 0x41486a
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0x640
mov edx, dword [ebp - 0x48]
shl edx, 4
cmp dword [ecx + edx + 0x43f5cc], 0
je 0x41485b
push 0x4360b0
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::operator_1
jmp 0x414868
push 0x4360ac
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::operator_1
jmp 0x41481f
push 0x435378
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::operator_1
jmp 0x414803
lea ecx, [ebp - 0x5c]
call fcn.00430110
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x44]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x435bd4
lea edx, [ebp - 0x18]
push edx
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x108], eax
lea ecx, [ebp - 0x10]
call fcn.004282c0
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x414975
push 0
push 0x1001
lea eax, [ebp - 0x30]
push eax
push 0x435bd4
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xac]
push edx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0xb0]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x11c]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::Open
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xb0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xac]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
call fcn.00408dd0
push eax
lea ecx, [ebp - 0x44]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x48], 0
jmp 0x414993
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
cmp edx, dword [0x43f0d4]
jge 0x414a06
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
jmp 0x4149b2
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x34]
cmp dword [ebp - 0x64], edx
jge 0x4149f7
mov eax, dword [ebp - 0x64]
imul eax, eax, 0x640
mov ecx, dword [ebp - 0x48]
shl ecx, 4
cmp dword [eax + ecx + 0x43f5cc], 0
je 0x4149e8
push 0x4360b0
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::operator_1
jmp 0x4149f5
push 0x4360ac
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::operator_1
jmp 0x4149a9
push 0x435378
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::operator_1
jmp 0x41498a
lea edx, [ebp - 0x60]
push edx
push ecx
mov eax, esp
mov dword [ebp - 0xb4], esp
push 0x435bd4
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x10]
call fcn.004282c0
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x414af6
push 0
push 0x1001
lea edx, [ebp - 0x30]
push edx
push 0x435bd4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x134]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::Open
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xbc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xb8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x60]
call fcn.00408dd0
push eax
lea ecx, [ebp - 0x60]
call fcn.00408e10
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::Close
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00427d00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret