Function at 0x418b50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b1891
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], 0x4bc200
mov dword [esp + 0x24], 8
call fcn.00433730
lea esi, [ebp + 0x58]
mov dword [esp + 0x14], esi
mov dword [esi], 0x4bc1ec
mov ebx, dword [esi + 4]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0x24], 9
je 0x418bc5
lea edi, [ebx + 8]
xor ebp, ebp
push 0
mov ecx, edi
call fcn.00419ea0
add edi, 0x10
mov eax, ebp
dec ebp
test eax, eax
jne 0x418ba6
mov ebx, dword [ebx]
test ebx, ebx
jne 0x418ba1
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], 0x4ba440
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::CString
mov esi, dword [ebp + 0x50]
cmp esi, edi
je 0x418c86
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x418c83
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x418c83
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 0x550158
push ecx
call fcn.00418d80
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x418c4e
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 0x418d1d
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x418d1a
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x418d1a
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 0x550158
push ecx
call fcn.00418d80
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x418ce5
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