Function at 0x407040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44408e
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x467a74]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 1
call fcn.00441f62
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 2
call fcn.00442112
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 3
call fcn.0044210c
lea ecx, [ebp - 0x4e0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [ebp - 0x4e4]
push eax
mov byte [ebp - 4], 5
call fcn.00406d50
add esp, 4
lea ecx, [ebp - 0x4d8]
push ecx
mov byte [ebp - 4], 6
call fcn.00406f70
add esp, 4
push 0
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov dword [ebp - 0x4ec], edx
push str._Y__m__d__X
lea edx, [ebp - 0x4e8]
push edx
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4f0], eax
call fcn.00406f00
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0x4d4]
push 0x44c2b8
push ecx
mov byte [ebp - 4], 8
call fcn.00404580
add esp, 0xc
push 0x44c2b4
push eax
lea edx, [ebp - 0x4dc]
push edx
mov byte [ebp - 4], 9
call fcn.004044f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [ebp - 0x4dc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 0x44c2ac
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4d4]
push ecx
call fcn.004044f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4d4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 0
lea ecx, [ebp - 0x4d8]
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x524]
call sub.mfc100u.dll_CFileFind::FindFile
test eax, eax
jne 0x4071d9
push eax
lea ecx, [ebp - 0x4d8]
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x44c2a8
lea edx, [ebp - 0x4d8]
push edx
lea eax, [ebp - 0x4dc]
push eax
call fcn.004044f0
add esp, 0xc
lea ecx, [ebp - 0x4e4]
push ecx
push eax
lea edx, [ebp - 0x4d4]
push edx
mov byte [ebp - 4], 0xc
call fcn.00406dc0
add esp, 0xc
push 0
push 2
mov ecx, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x508]
call sub.mfc100u.dll_CStdioFile::Open
test eax, eax
lea ecx, [ebp - 0x4d4]
sete bl
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
test bl, bl
je 0x4072c1
push 0x44c2a8
lea eax, [ebp - 0x4d8]
push eax
lea ecx, [ebp - 0x4dc]
push ecx
call fcn.004044f0
add esp, 0xc
lea edx, [ebp - 0x4e4]
push edx
push eax
lea eax, [ebp - 0x4d4]
push eax
mov byte [ebp - 4], 0xe
call fcn.00406dc0
add esp, 0xc
push 0
push 0x1002
mov ecx, eax
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x508]
call sub.mfc100u.dll_CStdioFile::Open
lea ecx, [ebp - 0x4d4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x4dc]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov edx, dword [ebp - 0x508]
mov eax, dword [edx + 0x34]
push 2
push 0
push 0
lea ecx, [ebp - 0x508]
call eax
push 0xff
lea ecx, [ebp - 0x214]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x4e0]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x2bc
lea eax, [ebp - 0x4d0]
push 0
push eax
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x214]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407327
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
sub eax, edx
push 0
sar eax, 1
mov esi, eax
push esi
lea ecx, [ebp - 0x214]
push ecx
push 0
push 0
call edi
cmp eax, 0x2bc
jbe 0x407360
mov eax, 0x2bc
push 0
push 0
push eax
lea edx, [ebp - 0x4d0]
push edx
push esi
lea eax, [ebp - 0x214]
push eax
push 0
push 0
call edi
lea eax, [ebp - 0x4d0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407383
sub eax, edx
push eax
lea ecx, [ebp - 0x4d0]
push ecx
lea ecx, [ebp - 0x508]
call sub.mfc100u.dll_CStdioFile::Write
lea ecx, [ebp - 0x508]
call sub.mfc100u.dll_CStdioFile::Close
lea ecx, [ebp - 0x4e8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x4d8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x4e4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x4e0]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 3
call sub.mfc100u.dll_CFileFind::CFileFind
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 2
call sub.mfc100u.dll_CStdioFile::CStdioFile
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 1
call sub.mfc100u.dll_CFile::CFile
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
jmp 0x407428
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00442c00
mov esp, ebp
pop ebp
ret