Function at 0x404920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
mov dword [ebp - 0x24], ecx
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x4c]
and eax, 0xffff
mov edi, dword [ebp - 0x4a]
mov ebx, dword [ebp - 0x46]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x42]
lea ecx, [ebp - 0x18]
and eax, 0xffff
and esi, 0xffff
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
and eax, 0xffff
and edi, 0xffff
and ebx, 0xffff
mov dword [ebp - 0x28], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
mov al, byte [ecx + 0xc5]
test al, al
je 0x404b57
push str.D:104
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x404a04
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push edi
push esi
lea ecx, [ebp - 0x18]
push 0x40b444
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x24]
push edx
push 0x40b42c
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040781c
push 0x40b538
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov al, byte [ebp + 0xc]
mov byte [ebp - 4], 7
cmp al, 1
jne 0x404a72
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push ecx
push str._0x_04x
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x404a9a
test al, al
jne 0x404a8d
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
push 0x40b404
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x404a9a
push 0x40b3f4
lea ecx, [ebp - 0x14]
call fcn.00407828
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push edx
push eax
push ecx
push ebx
push edi
push esi
lea edx, [ebp - 0x20]
push 0x40b3d0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
lea edx, [ebp + 0xc]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.0040781c
mov bl, 9
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [ebp - 0x18]
push 0
push 0x3001
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CStdioFile::Open
mov edx, dword [ebp - 0x60]
push 2
push 0
lea ecx, [ebp - 0x60]
call dword [edx + 0x30]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CStdioFile::Flush
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.004078dc
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 5
call fcn.0040781c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040781c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040781c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040781c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040781c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.0040781c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040781c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8