Function at 0x40cf90
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x66c4d0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x28]
mov ebx, 1
push ebx
push esi
call fcn.0040c9e0
add esp, 8
test eax, eax
je 0x40cfd4
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
push edi
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_5
xor ebp, ebp
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebp
call sub.MFC42u.DLL_CString::CString_6
lea eax, [esp + 0x10]
push ebp
push eax
mov byte [esp + 0x30], bl
call fcn.0040bb70
add esp, 8
lea ecx, [esp + 0x10]
mov edi, ebx
push 0x7191fc
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d06c
lea esi, [eax + 2]
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.006088b2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x18]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x18]
jmp 0x40d0d3
push 0x7191f4
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40d0d8
lea esi, [eax + 2]
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 4
call fcn.006088b2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 5
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
test edi, edi
je 0x40d19d
push ebx
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d105
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov ebp, ebx
call fcn.006088b2
jmp 0x40d15b
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 6
call fcn.006088b2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 7
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x14]
push ebx
push edx
call fcn.0040c9e0
add esp, 8
test eax, eax
jne 0x40d191
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d191
mov ecx, dword [esp + 0x14]
push ecx
push str.::CreateDirectory__s__failed_n
call fcn.0040db50
add esp, 8
xor edi, edi
test ebp, ebp
je 0x40d0d8
test edi, edi
jne 0x40d1af
mov edx, dword [esp + 0x30]
push edx
push str.FileMisc::CreateFolder__s__failed_n
call fcn.0040db50
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret