Function at 0x401410
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4028ef
push eax
mov dword fs:[0], esp
sub esp, 0x328
push ebx
push ebp
mov ebp, dword [esp + 0x340]
push esi
push edi
cmp byte [ebp], 0x2f
jne 0x401443
xor eax, eax
jmp 0x4016dc
push ebp
call fcn.00401200
add esp, 4
test eax, eax
je 0x40145a
mov eax, 1
jmp 0x4016dc
lea eax, [esp + 0x138]
lea ecx, [esp + 0x238]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
xor edi, edi
lea ecx, [esp + 0x2a]
push edi
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x348], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00401e00
mov dx, word [0x4040c0]
mov al, byte [0x4040c2]
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
mov word [esp + 0x20], dx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x38]
mov bl, 2
push ecx
push edx
mov byte [esp + 0x348], bl
mov byte [esp + 0x2a], al
call esi
add esp, 8
cmp eax, edi
je 0x401559
push eax
lea ecx, [esp + 0x28]
call fcn.0040250a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
mov byte [esp + 0x340], 3
je 0x401522
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
cmp ecx, edi
mov byte [esp + 0x340], 4
je 0x401519
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], ecx
jmp 0x40153a
push 1
lea edx, [esp + 0x2f]
push 1
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00401b30
lea ecx, [esp + 0x24]
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
push ecx
push edi
call esi
add esp, 8
cmp eax, edi
jne 0x4014d9
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x344], 5
call sub.MFC42.DLL_CString::operator
push 0x4040bc
lea ecx, [esp + 0x14]
call fcn.00402546
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, eax
xor esi, esi
sar ecx, 2
je 0x4015f7
mov edi, dword [sym.imp.MSVCRT.dll__mkdir]
lea edx, [eax + esi*4]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x4040bc
lea ecx, [esp + 0x14]
call fcn.00402546
mov eax, dword [esp + 0x10]
push eax
call fcn.00401200
add esp, 4
test eax, eax
jne 0x4015e5
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call fcn.00401200
add esp, 8
test eax, eax
je 0x40166e
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, eax
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x40159d
push ebp
call fcn.00401200
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp esi, eax
mov dword [esp + 0x340], 8
mov edi, eax
je 0x40163d
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, edi
jne 0x40162b
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x340], 9
je 0x4016da
mov eax, dword [esp + 0x1c]
sub eax, esi
sar eax, 2
shl eax, 2
cmp eax, 0x80
jbe 0x4016d0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4016da
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp esi, edi
mov dword [esp + 0x340], 6
je 0x4016a7
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, edi
jne 0x401695
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x340], 7
je 0x4016cc
mov edx, dword [esp + 0x1c]
sub edx, esi
sar edx, 2
shl edx, 2
push edx
push esi
call fcn.00401e10
add esp, 8
xor eax, eax
jmp 0x4016dc
push eax
push esi
call fcn.00402050
add esp, 8
mov eax, ebp
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x334
ret