Function at 0x46c350
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8410
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 0x46c6e5
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x46c6e5
push edi
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], ebx
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x6c]
push eax
lea eax, [esp + 0x78]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 1
call fcn.0046f498
lea ecx, [esp + 0x74]
mov byte [esp + 0x64], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call fcn.0046d750
mov ecx, dword [esp + 0x6c]
mov byte [esp + 0x64], 2
push ecx
lea ecx, [esp + 0x2c]
call fcn.0046d970
test eax, eax
je 0x46c6c7
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 3
call fcn.0046db40
test eax, eax
je 0x46c429
mov edx, dword [esp + 0x18]
mov byte [esp + 0x74], bl
cmp edx, ebx
sete al
cmp al, bl
je 0x46c42e
mov byte [esp + 0x74], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x74], bl
jne 0x46c6c7
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 4
call fcn.0046db70
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 2
sete byte [esp + 0x74]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x74], bl
jne 0x46c6c7
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 5
call fcn.0046dbb0
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 2
sete byte [esp + 0x74]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x74], bl
jne 0x46c6c7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jb 0x46c617
jne 0x46c4fb
mov ax, word [esp + 0x24]
cmp ax, word [esp + 0x78]
jbe 0x46c617
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
push 0x4e51ec
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 8
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
mov byte [esp + 0x64], 9
cmp eax, ebx
je 0x46c532
push str.__crisispack
lea ecx, [esp + 0x10]
call fcn.0046f48c
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push esi
push edi
push str.__s___install___s__s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
push eax
call fcn.0046c2a0
add esp, 0x18
test eax, eax
je 0x46c5fb
mov eax, dword [esp + 0x14]
mov byte [esp + 0x64], 8
cmp eax, ebx
lea ecx, [esp + 0xc]
je 0x46c5b3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], bl
call fcn.0046d7e0
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], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], bl
call fcn.0046d7e0
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], 8
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x10]
jmp 0x46c6c2
push esi
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x74]
push ebx
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 6
call fcn.0046db10
test eax, eax
je 0x46c654
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
push edx
call fcn.0046d840
test eax, eax
sete al
cmp al, bl
mov byte [esp + 0x78], bl
je 0x46c659
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x64], 2
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x78], bl
je 0x46c6c7
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x6c]
push 0x4ed6a8
push eax
lea ecx, [esp + 0x80]
push 0x4e522c
push ecx
mov byte [esp + 0x74], 7
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x88]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46c6b9
mov eax, dword [esp + 0x78]
push eax
call fcn.0046d340
add esp, 4
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], bl
call fcn.0046d7e0
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