Function at 0x4582e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a004
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov byte [ebp - 0x49], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x1c], 0
push 0
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
call fcn.00508ac0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 4
push dword [ebp - 0x40]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call fcn.00516410
test al, al
je 0x458611
push 0x28
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
je 0x4585d6
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
mov esi, dword [ebp + 0x18]
mov edx, esi
mov ecx, dword [ebp + 0x14]
call fcn.0051a2f0
add esp, 4
test al, al
je 0x4585d6
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push edi
lea edx, [esi + esi]
mov esi, dword [ebp - 0x54]
mov ecx, esi
call fcn.00518ba0
push esi
call dword [sym.imp.mfc140u.dll_operator_2]
add esp, 0xc
mov eax, 0x8123
test esi, esi
cmovne esi, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x18]
call fcn.00519230
mov dword [edi + 0x10], eax
mov ecx, 0x587818
call fcn.00519300
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 1
xor eax, eax
mov word [edi + 0x20], ax
mov word [edi + 0x22], ax
mov word [edi + 0x24], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
push 0xa
lea ecx, [ebp - 0x3c]
call dword [0x58672c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
push str._s.bak
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__31]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x50]
mov ecx, esi
call fcn.004593f0
push dword [ebp - 0x40]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
push dword [ebp - 0x40]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 8
push edi
lea eax, [ebp - 0x3c]
push eax
call fcn.00459a90
push 0x38
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
mov edi, eax
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x4584d5
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 8
mov ecx, edi
call fcn.004490d0
mov edi, eax
jmp 0x4584d7
xor edi, edi
mov byte [ebp - 4], 6
test edi, edi
je 0x4585b3
push 2
push 0xc0000000
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 9
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 6
call dword [eax + 0x3c]
test eax, eax
jne 0x4585aa
mov dword [ebp - 0x44], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x44]
push ecx
push 0x587060
push edi
call dword [eax]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4585a2
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov dword [ebp - 0x48], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp + 8]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
mov byte [ebp - 4], 6
mov ecx, esi
call fcn.00457910
test eax, eax
js 0x458599
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp - 0x48]
test eax, eax
je 0x458587
lea eax, [ebp - 0x50]
push eax
call fcn.004044d0
mov ecx, dword [eax]
test ecx, ecx
je 0x458582
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x50]
jmp 0x458568
mov byte [ebp - 0x49], 1
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x14]
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4585b3
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x50]
lea eax, [ebp - 0x3c]
push eax
call fcn.00459c20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_CPtrList::CPtrList]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005089c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, byte [ebp - 0x49]
jmp 0x458650
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005089c0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret 0x18