Function at 0x418f50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b2491
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
mov dword [ebp], 0x4bd290
mov dword [esp + 0x24], 8
call fcn.00434630
lea esi, [ebp + 0x58]
mov dword [esp + 0x14], esi
mov dword [esi], 0x4bd27c
mov ebx, dword [esi + 4]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0x24], 9
je 0x418fc5
lea edi, [ebx + 8]
xor ebp, ebp
push 0
mov ecx, edi
call fcn.0041a3d0
add edi, 0x14
mov eax, ebp
dec ebp
test eax, eax
jne 0x418fa6
mov ebx, dword [ebx]
test ebx, ebx
jne 0x418fa1
mov ebp, dword [esp + 0x10]
xor edi, edi
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call sub.MFC42.DLL_CPlex::FreeDataChain
lea ecx, [ebp + 0x54]
mov dword [esi + 0x14], edi
mov dword [esi], 0x4bb4c0
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::CString
mov esi, dword [ebp + 0x50]
cmp esi, edi
je 0x419086
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x419083
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x419083
mov edx, dword [esi + 4]
lea edi, [esi + 4]
lea eax, [esp + 0x14]
mov ecx, edi
push eax
mov byte [esp + 0x28], 0xb
call dword [edx + 0x18]
mov ecx, dword [eax]
push 0x52e3b8
push ecx
call fcn.00419180
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41904e
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov byte [esp + 0x24], 0xa
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor edi, edi
mov dword [ebp + 0x50], edi
mov esi, dword [ebp + 0x4c]
cmp esi, edi
je 0x41911d
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41911a
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x41911a
mov edx, dword [esi + 4]
lea edi, [esi + 4]
lea eax, [esp + 0x14]
mov ecx, edi
push eax
mov byte [esp + 0x28], 0xd
call dword [edx + 0x18]
mov ecx, dword [eax]
push 0x52e3b8
push ecx
call fcn.00419180
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4190e5
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov byte [esp + 0x24], 0xc
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor edi, edi
mov dword [ebp + 0x4c], edi
lea ecx, [ebp + 0x48]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 4]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret