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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4fe0af
push eax
mov eax, 0x1034
mov dword fs:[0], esp
call fcn.00445f30
mov eax, dword [esp + 0x1044]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
je 0x4553b6
lea edi, [esi + 0x6c]
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jl 0x45537f
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [edi]
push 0x5c
mov ecx, edi
mov dword [esp + 0x1050], 0
mov ebp, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub ebp, eax
lea ecx, [esp + 0x10]
dec ebp
push ebp
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, edi
mov byte [esp + 0x1050], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x104c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x68]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edi, [esi + 0x68]
push 0x5b2c3c
push eax
call ebx
add esp, 8
test eax, eax
je 0x45523b
mov eax, dword [edi]
push 0x5b2c3c
push eax
call fcn.0049b190
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x45523f
push 0x5b2c3c
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
jmp 0x45523f
mov ebp, dword [esp + 0x14]
mov eax, dword [edi]
push 0x5b2c3c
push eax
call ebx
add esp, 8
test eax, eax
jne 0x455304
lea edx, [esp + 0x44]
lea ecx, [esi + 0x34]
push edx
push eax
call fcn.00421220
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5b2c3c
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push eax
call fcn.004555e0
add esp, 8
mov ecx, eax
call fcn.00421220
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4552e0
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x5b2c3c
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5b2c3c
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x20]
push edx
call fcn.004555e0
add esp, 8
mov ecx, eax
call fcn.00421220
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [edi]
push 0x5b2c3c
push eax
call fcn.0049b190
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x45535e
mov ecx, dword [esp + 0x18]
push ecx
push str.SetupOCXFile
push ebp
call fcn.0049b200
push ebp
call fcn.0049fd50
add esp, 0x10
test al, al
push ebp
je 0x455342
call fcn.0049fcd0
add esp, 4
mov dword [esp + 0x104c], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x4555b5
call fcn.0049b220
add esp, 4
mov dword [esp + 0x104c], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x4555b5
mov edi, dword [edi]
push 0x5b2c3c
push edi
call ebx
add esp, 8
mov dword [esp + 0x104c], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x4555b5
mov edi, dword [edi]
push 0x5b2c3c
push edi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4555ba
mov edx, dword [esi + 0x68]
add esi, 0x68
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5b2c3c
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
jmp 0x4555ba
lea eax, [esp + 0x18]
push eax
call fcn.0042cf00
add esp, 4
push str.qmacro_tempSetupOCXFile
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1058], 2
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x104c], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
call edi
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x34]
mov eax, dword [eax - 8]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0042cbd0
add esp, 0xc
lea edx, [esp + 0x30]
push 0x64
push edx
mov ecx, eax
mov byte [esp + 0x1054], 5
call sub.MFC42.DLL_CString::Left
mov ebp, eax
lea eax, [esp + 0x24]
mov byte [esp + 0x104c], 6
push eax
call fcn.0042cf00
add esp, 4
push str.qmacro_temp_
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x1058], 7
call sub.MFC42.DLL_operator_1
push ebp
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0x1058], 8
call sub.MFC42.DLL_operator
push 0x59188c
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x1054], 9
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x104c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x104c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x104c], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x104c], 0xc
call sub.MFC42.DLL_CString::CString
mov bl, 0xb
lea ecx, [esp + 0x2c]
mov byte [esp + 0x104c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.SetupOCXFile
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
mov byte [esp + 0x1050], 0x10
push edx
call fcn.0042cf00
mov ecx, esp
mov dword [esp + 0x48], esp
push str.qmacro_temp_
push eax
push ecx
mov byte [esp + 0x1060], 0x11
call sub.MFC42.DLL_operator_1
push ecx
lea edx, [esi + 0x68]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x105c], 0x12
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x1058], 0x13
call fcn.00410470
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x104c], bl
call sub.MFC42.DLL_CString::CString
add esi, 0x6c
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x20]
push edx
call edi
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 + 0x1c]
mov byte [esp + 0x104c], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x104c], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1040
ret 4