Function at 0x40cdba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437718
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.0042e0da
mov dword [ebp - 4], 0
push 0x448600
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
push ecx
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x40cf80
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x15c], 0
je 0x40ce3d
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x15c], 0
je 0x40cf80
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x158], 0
je 0x40cf80
push 0x448604
mov edx, dword [ebp - 0x38]
add edx, 0x14c
push edx
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x40cf80
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.00412850
movsx eax, al
cmp eax, 0x5c
jne 0x40cf24
push 0
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
call fcn.00412850
movsx ecx, al
cmp ecx, 0x5c
jne 0x40cf0b
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.0042e0e6
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 0x40cf22
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 0x40cf80
push 0
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
call fcn.00412850
movsx ecx, al
cmp ecx, 0x5c
jne 0x40cf56
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 0x40cf80
push 0x44383c
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.0042e0f8
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 0x448608
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
push ecx
call fcn.0040b2e0
and eax, 0xff
test eax, eax
je 0x40cfc6
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 0x40d174
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.004077a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40d0c4
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 0x40d01d
jmp 0x40d0c4
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.004077a0
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 0x40d0af
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.004077a0
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 0x40cffb
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x154], 0
je 0x40d11d
push 0x44860c
mov ecx, dword [ebp - 0x38]
add ecx, 0x150
push ecx
call fcn.00407410
and eax, 0xff
test eax, eax
je 0x40d102
lea ecx, [ebp - 0x10]
call fcn.004077a0
push eax
call fcn.00407490
mov ecx, eax
call fcn.00410996
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.004077a0
push eax
call fcn.00407490
mov ecx, eax
call fcn.004109bb
mov ecx, dword [ebp - 0x38]
call fcn.0040d1ae
mov ecx, dword [ebp - 0x38]
add ecx, 0x14c
call fcn.004077a0
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.0040d470
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