Function at 0x40cb90
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c0b8
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [esp + 0x74]
xor ebx, ebx
cmp edi, ebx
je 0x40cefc
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x40cefc
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.0040dd30
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], ebx
push ecx
call fcn.0040d4b0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0040de90
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0x68], 1
call fcn.0040e0b0
test eax, eax
je 0x40cede
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 2
call fcn.0040e280
test eax, eax
je 0x40cc40
mov edx, dword [esp + 0x18]
mov byte [esp + 0x74], bl
cmp edx, ebx
sete al
cmp al, bl
je 0x40cc45
mov byte [esp + 0x74], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x74], bl
jne 0x40cede
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 3
call fcn.0040e2b0
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 1
sete byte [esp + 0x74]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x74], bl
jne 0x40cede
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 4
call fcn.0040e2f0
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 1
sete byte [esp + 0x74]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x74], bl
jne 0x40cede
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jb 0x40ce2e
jne 0x40cd12
mov cx, word [esp + 0x24]
cmp cx, word [esp + 0x78]
jbe 0x40ce2e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0x440080
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 7
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
mov byte [esp + 0x64], 8
cmp eax, ebx
je 0x40cd49
push str.__crisispack
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push esi
push edi
push str.__s___install__newpath___s__s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040cae0
add esp, 0x18
test eax, eax
je 0x40ce12
mov eax, dword [esp + 0x14]
mov byte [esp + 0x64], 7
cmp eax, ebx
lea ecx, [esp + 0xc]
je 0x40cdca
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], bl
call fcn.0040df20
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], bl
call fcn.0040df20
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 7
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x10]
jmp 0x40ced9
push esi
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x74]
push ebx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 5
call fcn.0040e250
test eax, eax
je 0x40ce6b
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
push eax
call fcn.0040df80
test eax, eax
sete al
cmp al, bl
mov byte [esp + 0x78], bl
je 0x40ce70
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x78], bl
je 0x40cede
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x6c]
push 0x431ee8
push ecx
lea edx, [esp + 0x80]
push str._s_s
push edx
mov byte [esp + 0x74], 6
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x88]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ced0
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0040d6a0
add esp, 4
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], bl
call fcn.0040df20
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret