Function at 0x402c06
Capabilities:
Delete file

Disassembly:
mov eax, 0x4b1906
call fcn.00458b70
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
push 0x14
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x402c38
mov ecx, eax
call fcn.004175a7
mov esi, eax
jmp 0x402c3a
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x402e19
mov ecx, esi
call fcn.004176a0
test eax, eax
je 0x402e11
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
mov dword [ebp - 0x1c], edi
call fcn.0041772f
test eax, eax
je 0x402e11
cmp dword [ebp - 0x1c], edi
je 0x402e11
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
mov dword [ebp - 0x20], edi
call fcn.00417743
test eax, eax
je 0x402e11
cmp dword [ebp - 0x20], edi
je 0x402e11
lea ecx, [ebp - 0x14]
call fcn.0045842e
push 1
lea eax, [ebp - 0x14]
pop ebx
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call fcn.00417777
test eax, eax
jne 0x402cbe
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
xor esi, esi
jmp 0x402e01
mov edi, 0x4c7dec
push edi
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x402cb0
and dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0041775d
test eax, eax
je 0x402cb0
mov ecx, dword [ebp - 0x28]
movzx eax, byte [ecx + 0xce]
movzx ecx, byte [ecx + 0xcf]
imul eax, eax, 0x64
add eax, ecx
cmp dword [ebp - 0x24], eax
ja 0x402d98
push 0
mov ecx, esi
call fcn.0041771b
test eax, eax
je 0x402d1c
mov ecx, esi
call fcn.00417625
test eax, eax
jne 0x402d98
lea ecx, [ebp - 0x10]
call fcn.0045842e
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
call fcn.004172ab
mov dword [esp], 0x4c7df0
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push 0x4c81e8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402d8d
push dword [ebp - 0x10]
call fcn.0041737a
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x402e19
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x18]
call fcn.0045842e
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
call fcn.004172ab
pop ecx
push edi
push 0x4c7dd8
push dword [eax]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push str.__s_s___install___s___crisispack
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x28]
push 5
push dword [ebp - 0x18]
call fcn.00402e2a
cmp eax, 0x1f
jbe 0x402df4
mov esi, ebx
jmp 0x402df6
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x402e1b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret