Function at 0x402740
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4031a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x13f]
mov byte [ebp - 0x140], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4028a3
lea ecx, [ebp - 0x14]
call fcn.00402cce
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00402cce
mov ecx, dword [ebp + 8]
push 0x5c
push 0
lea edx, [ebp - 0x14]
mov bl, 3
push ecx
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_AfxExtractSubString
mov eax, dword [ebp - 0x14]
push 0x405084
push eax
lea ecx, [ebp - 0x18]
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp + 8]
add esp, 0x10
mov esi, 1
lea eax, [ebp - 0x14]
push 0x5c
push esi
push edx
push eax
call sub.MFC42.DLL_AfxExtractSubString
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
inc esi
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
push 0x405084
lea edx, [ebp - 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
push 0
push eax
call edi
mov ecx, dword [ebp + 8]
push 0x5c
push esi
lea edx, [ebp - 0x14]
push ecx
push edx
call sub.MFC42.DLL_AfxExtractSubString
mov eax, dword [ebp - 0x14]
push 0x4052d0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x402805
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
jmp 0x4029dc
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edx, dword [ebp - 0x40]
push 0x10
lea ecx, [ebp - 0x40]
call dword [edx + 0x40]
test eax, eax
jne 0x4029e1
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
push eax
call sub.MFC42.DLL_CFile::Remove
mov esi, 1
mov dword [ebp - 4], esi
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x18]
call fcn.00402cce
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00402cce
push 0x5c
lea edx, [ebp - 0x140]
push 0
lea eax, [ebp - 0x18]
mov bl, 0xa
push edx
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_AfxExtractSubString
mov ecx, dword [ebp - 0x18]
push 0x405084
push ecx
lea edx, [ebp - 0x14]
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x18]
push 0x5c
push esi
push eax
push ecx
call sub.MFC42.DLL_AfxExtractSubString
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
push eax
push ecx
inc esi
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x14]
push 0x405084
lea eax, [ebp - 0x20]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
push 0
push ecx
call edi
push 0x5c
lea edx, [ebp - 0x140]
push esi
lea eax, [ebp - 0x18]
push edx
push eax
call sub.MFC42.DLL_AfxExtractSubString
mov ecx, dword [ebp - 0x18]
push 0x4052d0
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x402940
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402d58
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4