Function at 0x401967
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bb8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::TrimLeft_1
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::TrimRight_2
lea ecx, [ebp + 8]
call fcn.004020a0
test eax, eax
je 0x4019d6
mov dword [ebp - 0x238], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x238]
jmp 0x401d06
push 0x5c
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jge 0x401a13
mov dword [ebp - 0x23c], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x23c]
jmp 0x401d06
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
push ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 0x118], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x224], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 8]
push edx
push 0x46d0dc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
jmp 0x401ae0
mov edx, dword [ebp - 0x228]
add edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x230]
jge 0x401c2b
mov ecx, dword [ebp - 0x228]
movsx edx, byte [ebp + ecx - 0x118]
cmp edx, 0x5c
jne 0x401c26
mov eax, dword [ebp - 0x22c]
and eax, 0xff
test eax, eax
jne 0x401b24
mov byte [ebp - 0x22c], 1
jmp 0x401c26
push 0x105
push 0
lea ecx, [ebp - 0x224]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x228]
push edx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x401bc5
mov edx, dword [ebp + 0xc]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
lea eax, [ebp - 0x224]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x268], eax
call fcn.0040179a
add esp, 8
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0
jne 0x401bc3
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xb7
je 0x401bc3
mov dword [ebp - 0x248], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x248]
jmp 0x401d06
jmp 0x401c1d
push 0
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x401c1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xb7
je 0x401c1d
mov dword [ebp - 0x24c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24c]
jmp 0x401d06
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x401ad1
cmp dword [ebp - 0x10], 0
jne 0x401c92
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x250], esp
lea edx, [ebp + 8]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x270], eax
call fcn.0040179a
add esp, 8
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
jne 0x401c90
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xb7
je 0x401c90
mov dword [ebp - 0x254], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x254]
jmp 0x401d06
jmp 0x401ce7
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x401ce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xb7
je 0x401ce7
mov dword [ebp - 0x258], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x258]
jmp 0x401d06
mov dword [ebp - 0x25c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret