Function at 0x4035a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x428e13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x244]
xor ebx, ebx
lea ecx, [esp + 0x240]
mov dword [esp + 0x238], ebx
mov dword [eax], ebx
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x240]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x240]
cmp dword [ecx - 8], ebx
jne 0x403616
lea ecx, [esp + 0x240]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffe
jmp 0x403825
push 0x5c
lea ecx, [esp + 0x244]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jge 0x403649
lea ecx, [esp + 0x240]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffd
jmp 0x403825
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x248]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x244]
mov byte [esp + 0x23c], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], bl
call sub.MFC42.DLL_CString::CString
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x240]
lea ecx, [esp + 0x20]
push eax
push 0x435020
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor esi, esi
cmp ecx, ebx
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], bl
jle 0x40379b
cmp byte [esp + esi + 0x20], 0x5c
jne 0x40378e
cmp byte [esp + 0x13], bl
jne 0x4036fe
mov byte [esp + 0x13], 1
jmp 0x40378e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x128]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
cmp ebp, ebx
jne 0x403760
mov edi, dword [esp + 0x244]
lea edx, [esp + 0x128]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004284f2
call fcn.004033c0
add esp, 8
cmp eax, ebx
jne 0x403789
cmp dword [edi], 0xb7
jne 0x4037ed
jmp 0x403789
lea eax, [esp + 0x128]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
jne 0x403789
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x244]
cmp eax, 0xb7
mov dword [ecx], eax
jne 0x4037ed
mov ecx, dword [esp + 0x14]
inc ebp
inc esi
cmp esi, ecx
jl 0x4036e3
cmp ebp, ebx
jne 0x4037c7
mov esi, dword [esp + 0x244]
lea edx, [esp + 0x240]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.004033c0
add esp, 8
cmp eax, ebx
jne 0x403809
mov eax, dword [esi]
jmp 0x4037e6
lea eax, [esp + 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
jne 0x403809
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x244]
mov dword [ecx], eax
cmp eax, 0xb7
je 0x403809
lea ecx, [esp + 0x240]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x403825
lea ecx, [esp + 0x240]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x22c
ret