Function at 0x4049d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x408db6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ecx - 1]
test esi, esi
jl 0x404a7b
cmp byte [esi + ebx], 0x5c
je 0x404a18
dec esi
jns 0x404a0d
jmp 0x404a7b
lea edi, [esi + 1]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll__findfirst]
add esp, 0xc
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov eax, edx
test eax, eax
je 0x404a72
mov ecx, dword [esp + 0x14]
push ebp
call fcn.004049d0
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.MSVCRT.dll__strcmpi]
mov byte [esp + 0x13c], 1
mov dword [esp + 0x14], 0x41
movsx esi, byte [esp + 0x14]
push esi
lea eax, [esp + 0x14]
push 0x40d184
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push esi
push 0x40d17c
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
push edx
push ebx
call edi
add esp, 0x14
test eax, eax
je 0x404b06
mov eax, dword [esp + 0x18]
push eax
push ebx
call edi
add esp, 8
test eax, eax
je 0x404b06
mov eax, dword [esp + 0x14]
xor ebp, ebp
inc eax
cmp eax, 0x5a
mov dword [esp + 0x14], eax
jle 0x404aae
jmp 0x404b0b
mov ebp, 1
push 0x40d31c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x40d044
push 0x40d040
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d31c
push 0x40d168
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d31c
push 0x40d164
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d31c
push 0x40d048
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d31c
push 0x40d160
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d31c
push 0x40d15c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d31c
push 0x40d158
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d31c
push str.____
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x404bfb
cmp ebp, 1
jne 0x404bfb
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], al
call fcn.00407dc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00407dc0
mov eax, ebp
jmp 0x404c22
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call fcn.00407dc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00407dc0
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 4