Function at 0x401400
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4028cf
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 0x401433
xor eax, eax
jmp 0x4016cc
push ebp
call fcn.004011f0
add esp, 4
test eax, eax
je 0x40144a
mov eax, 1
jmp 0x4016cc
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.00401de0
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 0x401549
push eax
lea ecx, [esp + 0x28]
call fcn.004024ea
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
mov byte [esp + 0x340], 3
je 0x401512
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
cmp ecx, edi
mov byte [esp + 0x340], 4
je 0x401509
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 0x40152a
push 1
lea edx, [esp + 0x2f]
push 1
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00401b10
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 0x4014c9
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.00402526
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, eax
xor esi, esi
sar ecx, 2
je 0x4015e7
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.00402526
mov eax, dword [esp + 0x10]
push eax
call fcn.004011f0
add esp, 4
test eax, eax
jne 0x4015d5
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call fcn.004011f0
add esp, 8
test eax, eax
je 0x40165e
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, eax
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x40158d
push ebp
call fcn.004011f0
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 0x40162d
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, edi
jne 0x40161b
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x340], 9
je 0x4016ca
mov eax, dword [esp + 0x1c]
sub eax, esi
sar eax, 2
shl eax, 2
cmp eax, 0x80
jbe 0x4016c0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4016ca
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 0x401697
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, edi
jne 0x401685
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x340], 7
je 0x4016bc
mov edx, dword [esp + 0x1c]
sub edx, esi
sar edx, 2
shl edx, 2
push edx
push esi
call fcn.00401df0
add esp, 8
xor eax, eax
jmp 0x4016cc
push eax
push esi
call fcn.00402030
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