Function at 0x40cf8f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
add eax, 0x14c
push eax
lea ecx, [ebp - 0x10]
call fcn.0042e32a
mov dword [ebp - 4], 0
push 0x449610
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
push ecx
call fcn.00407460
and eax, 0xff
test eax, eax
je 0x40d155
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x15c], 0
je 0x40d012
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x15c], 0
je 0x40d155
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x158], 0
je 0x40d155
push 0x449614
mov edx, dword [ebp - 0x38]
add edx, 0x14c
push edx
call fcn.00407460
and eax, 0xff
test eax, eax
je 0x40d155
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.00402c90
sub eax, 1
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.00412a30
movsx eax, al
cmp eax, 0x5c
jne 0x40d0f9
push 0
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
call fcn.00412a30
movsx ecx, al
cmp ecx, 0x5c
jne 0x40d0e0
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.00402c90
sub eax, 1
push eax
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.0042e336
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x38]
add edx, 0x150
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::operator_1
jmp 0x40d0f7
mov eax, dword [ebp - 0x38]
add eax, 0x150
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::operator_1
jmp 0x40d155
push 0
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
call fcn.00412a30
movsx ecx, al
cmp ecx, 0x5c
jne 0x40d12b
mov edx, dword [ebp - 0x38]
add edx, 0x150
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::operator_1
jmp 0x40d155
push 0x44483c
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.0042e348
mov eax, dword [ebp - 0x38]
add eax, 0x150
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::operator_1
push 0x449618
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
push ecx
call fcn.0040b480
and eax, 0xff
test eax, eax
je 0x40d19b
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
jmp 0x40d349
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40d299
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.00402c90
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
push edx
push 0x5c
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::Find
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x40d1f2
jmp 0x40d299
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
call fcn.004077f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
je 0x40d284
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
call fcn.004077f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jl 0x40d1d0
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x154], 0
je 0x40d2f2
push 0x44961c
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
push ecx
call fcn.00407460
and eax, 0xff
test eax, eax
je 0x40d2d7
lea ecx, [ebp - 0x10]
call fcn.004077f0
push eax
call fcn.004074e0
mov ecx, eax
call fcn.00410b76
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.004077f0
push eax
call fcn.004074e0
mov ecx, eax
call fcn.00410b9b
mov ecx, dword [ebp - 0x38]
call fcn.0040d383
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.004077f0
push eax
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + 0x160]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x160]
mov eax, dword [edx]
call dword [eax]
push 0
push 0x2bc
push 0x65
mov ecx, dword [ebp - 0x38]
call fcn.0040d650
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret