Function at 0x402c80
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x407f76
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 0x402d2b
cmp byte [esi + ebx], 0x5c
je 0x402cc8
dec esi
jns 0x402cbd
jmp 0x402d2b
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 0x402d22
mov ecx, dword [esp + 0x14]
push ebp
call fcn.00402c80
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString_2
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 0x40bbdc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push esi
push 0x40bbd4
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 0x402db6
mov eax, dword [esp + 0x18]
push eax
push ebx
call edi
add esp, 8
test eax, eax
je 0x402db6
mov eax, dword [esp + 0x14]
xor ebp, ebp
inc eax
cmp eax, 0x5a
mov dword [esp + 0x14], eax
jle 0x402d5e
jmp 0x402dbb
mov ebp, 1
push 0x40d4ac
lea ecx, [esp + 0x14]
call fcn.004078a2
push ebx
lea ecx, [esp + 0x14]
call fcn.004078a2
push 0x40bbd0
push 0x40bbcc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d4ac
push 0x40bbc8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d4ac
push 0x40bbc4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d4ac
push 0x40bbc0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d4ac
push 0x40bbbc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d4ac
push 0x40bbb8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d4ac
push 0x40bbb4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x40d4ac
push 0x40bbb0
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 0x402eab
cmp ebp, 1
jne 0x402eab
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebp
jmp 0x402ed2
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
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