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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x47829f
push eax
mov eax, 0x1034
mov dword fs:[0], esp
call fcn.0041fb60
mov eax, dword [esp + 0x1044]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
je 0x4318b6
lea edi, [esi + 0x6c]
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jl 0x43187f
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
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 fcn.0041f1d2
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 0x4eaa80
push eax
call ebx
add esp, 8
test eax, eax
je 0x43173b
mov eax, dword [edi]
push 0x4eaa80
push eax
call fcn.0045af30
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x43173f
push 0x4eaa80
mov ecx, edi
call sub.MFC42.DLL_CString::operator_3
jmp 0x43173f
mov ebp, dword [esp + 0x14]
mov eax, dword [edi]
push 0x4eaa80
push eax
call ebx
add esp, 8
test eax, eax
jne 0x431804
lea edx, [esp + 0x44]
lea ecx, [esi + 0x34]
push edx
push eax
call fcn.0042f6a0
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4eaa80
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x20]
push eax
call fcn.00431ae0
add esp, 8
mov ecx, eax
call fcn.0042f6a0
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 0x4317e0
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x4eaa80
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4eaa80
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0x20]
push edx
call fcn.00431ae0
add esp, 8
mov ecx, eax
call fcn.0042f6a0
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_3
mov eax, dword [edi]
push 0x4eaa80
push eax
call fcn.0045af30
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x43185e
mov ecx, dword [esp + 0x18]
push ecx
push str.SetupOCXFile
push ebp
call fcn.0045afa0
push ebp
call fcn.0045faf0
add esp, 0x10
test al, al
push ebp
je 0x431842
call fcn.0045fa70
add esp, 4
mov dword [esp + 0x104c], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x431ab5
call fcn.0045afc0
add esp, 4
mov dword [esp + 0x104c], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x431ab5
mov edi, dword [edi]
push 0x4eaa80
push edi
call ebx
add esp, 8
mov dword [esp + 0x104c], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x431ab5
mov edi, dword [edi]
push 0x4eaa80
push edi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x431aba
mov edx, dword [esi + 0x68]
add esi, 0x68
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4eaa80
mov ecx, esi
call sub.MFC42.DLL_CString::operator_3
jmp 0x431aba
lea eax, [esp + 0x18]
push eax
call fcn.00416560
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.00416230
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.00416560
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_2
push 0x4e6128
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.IMAGEHLP.dll_MakeSureDirectoryPathExists]
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.SetupOCXFile
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0x18]
mov byte [esp + 0x1050], 0x10
push edx
call fcn.00416560
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_3
mov byte [esp + 0x1058], 0x13
call fcn.00433fe0
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_2
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