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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x809538
push eax
mov eax, 0x1020
mov dword fs:[0], esp
call fcn.0072bd20
mov eax, dword [esp + 0x1030]
push ebx
push esi
mov esi, ecx
test eax, eax
mov eax, dword [esi + 0x9c]
push edi
je 0x6d2b6e
test eax, eax
jne 0x6d2b0f
lea edi, [esi + 0xa0]
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jl 0x6d2b0f
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x103c], 0
call fcn.0040277f
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x1038], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x1034], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esi + 8]
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x1038], 2
call fcn.004023ec
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call edi
test eax, eax
lea ecx, [esp + 0xc]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x6d2a4d
lea edx, [esp + 0xc]
push edx
call fcn.004023ec
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x8bd670
push eax
call edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [esp + 0x10]
push 0x8bd670
push eax
call fcn.00757840
mov edi, eax
add esp, 8
test edi, edi
je 0x6d2abb
mov ecx, dword [esp + 0x18]
push ecx
push str.SetupOCXFile
push edi
call fcn.007578f0
push edi
call fcn.0075ccd0
add esp, 0x10
test al, al
push edi
je 0x6d2a98
call fcn.0075cc50
jmp 0x6d2a9d
call fcn.007579d0
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esi + 0x98]
push edx
call fcn.006de000
push 0
mov ecx, esi
call fcn.006d2940
jmp 0x6d2aea
mov edi, dword [esi + 0x98]
test edi, edi
je 0x6d2aea
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d2ae0
test edi, edi
je 0x6d2ae0
push 1
mov ecx, edi
call fcn.006d2e60
mov dword [esi + 0x98], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1034], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1034], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x6d2cf9
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x6d2b36
mov eax, dword [esi + 0xa0]
push 0x8bd670
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x6d2cfe
mov edi, dword [esi + 0x98]
test edi, edi
je 0x6d2cfe
lea ecx, [edi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d2b5f
test edi, edi
je 0x6d2b5f
push 1
mov ecx, edi
call fcn.006d2e60
mov dword [esi + 0x98], 0
jmp 0x6d2cfe
test eax, eax
jne 0x6d2cfe
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.006d2da0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1034], 3
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
lea ecx, [esp + 0x14]
push str.SetupOCXFile
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
mov byte [esp + 0x1038], 4
call edi
lea eax, [esi + 0x98]
mov dword [esp + 0x24], 0x8bd670
mov dword [esp + 0x20], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x6d2be2
call fcn.004016d1
mov dword [esp + 0x24], eax
push 0
push ecx
mov bl, 5
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x8bd670
mov byte [esp + 0x1040], bl
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x1044], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1040], 7
call fcn.006d2d40
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x1044], bl
call fcn.006e4aa0
add esp, 0x10
add esi, 0xa0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push esi
push eax
push ecx
call sub.MFC42.DLL_operator_4
mov edx, dword [esp + 0x1c]
push edx
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
mov byte [esp + 0x1034], 4
cmp byte [edx], 0
je 0x6d2cd9
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
test edi, edi
je 0x6d2cd9
mov edx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x8bd670
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x6d2cd9
mov edi, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push edi
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1034], 3
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x1034], 0xffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x102c
ret 4