Function at 0x42f660
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d830d
push eax
mov eax, 0x1018
mov dword fs:[0], esp
call fcn.0045b980
mov eax, dword [esp + 0x1028]
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp eax, ebp
push edi
mov eax, dword [esi + 0xa0]
je 0x42f885
cmp eax, ebp
jne 0x42f82c
lea edi, [esi + 0xa4]
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x42f82c
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1038], ebp
call fcn.0041c450
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x1034], 1
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x1030], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x1034], 2
call fcn.0041baf0
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x28]
push ecx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call edi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x42f76a
lea edx, [esp + 0x10]
push edx
call fcn.0041baf0
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x28]
push ecx
push ebp
push 0x5e2540
push eax
call edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
call fcn.0045acce
mov eax, dword [esp + 0x14]
push 0x5e2540
push eax
call fcn.0047f4c0
mov edi, eax
add esp, 8
test edi, edi
je 0x42f7d8
mov ecx, dword [esp + 0x1c]
push ecx
push str.SetupOCXFile
push edi
call fcn.0047f530
push edi
call fcn.00484040
add esp, 0x10
test al, al
push edi
je 0x42f7b5
call fcn.00483fc0
jmp 0x42f7ba
call fcn.0047f550
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esi + 0x9c]
push edx
call fcn.00434e90
push 0
mov ecx, esi
call fcn.0042f660
jmp 0x42f807
mov edi, dword [esi + 0x9c]
test edi, edi
je 0x42f807
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42f7fd
test edi, edi
je 0x42f7fd
push 1
mov ecx, edi
call fcn.0042fae0
mov dword [esi + 0x9c], 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1030], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [esp + 0x1c]
jmp 0x42f9d8
cmp dword [esi + 0xa0], ebp
jne 0x42f851
mov eax, dword [esi + 0xa4]
push 0x5e2540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x42f9dd
mov edi, dword [esi + 0x9c]
cmp edi, ebp
je 0x42f9dd
lea ecx, [edi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42f87a
cmp edi, ebp
je 0x42f87a
push 1
mov ecx, edi
call fcn.0042fae0
mov dword [esi + 0x9c], ebp
jmp 0x42f9dd
cmp eax, ebp
jne 0x42f9dd
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.0042fa20
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1030], 3
push eax
call dword [sym.imp.IMAGEHLP.dll_MakeSureDirectoryPathExists]
lea ecx, [esp + 0x18]
push str.SetupOCXFile
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_4
mov eax, dword [esp + 0x10]
mov bl, 4
push eax
mov byte [esp + 0x1034], bl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e2540
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x1040], 5
call sub.MFC42.DLL_CString::CString_4
lea edi, [esi + 0x9c]
mov byte [esp + 0x103c], 6
mov ecx, edi
call fcn.0042fa00
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x1040], bl
call fcn.00439c50
mov ebp, dword [edi]
add esp, 0x10
test ebp, ebp
je 0x42f97e
mov eax, dword [ebp + 4]
lea edi, [ebp + 4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x5e2540
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x42f97e
mov ebp, dword [ebp]
mov edx, dword [edi]
push 0
push 0x8010
push ebp
mov ecx, edi
call dword [edx + 0x28]
add esi, 0xa4
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_3
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1030], 3
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1028]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1024
ret 4