Function at 0x461490
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb393
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x464], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x45c]
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push ecx
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR120.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x46167f
test dword [ebp - 0x456], 0x4000
je 0x46167f
xorps xmm0, xmm0
mov dword [ebp - 0x418], eax
movq qword [ebp - 0x420], xmm0
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
lea edx, [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
push dword [ebp - 0x464]
add eax, ecx
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x420]
cmovae edx, dword [ebp + 0xc]
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00462370
add esp, 0xc
mov dword [ebp - 0x460], 0
lea eax, [ebp - 0x460]
lea ecx, [ebp - 0x420]
push eax
call fcn.004620e0
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0
push eax
lea ecx, [ebp - 0x420]
call fcn.004620e0
mov eax, dword [ebp - 0x420]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x44c], xmm0
mov dword [ebp - 0x444], eax
mov eax, 0x614
movq qword [ebp - 0x43c], xmm0
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x44c]
push eax
mov dword [ebp - 0x434], 0
mov word [ebp - 0x430], 0
mov dword [ebp - 0x448], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, eax
test ecx, ecx
jne 0x461612
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x461608
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push eax
call edi
add esp, 4
mov esi, 1
jmp 0x4616e7
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push ecx
lea eax, [ebp - 0x414]
push 0x4e2c8c
push eax
call fcn.0040e000
add esp, 0x10
cmp byte [ebp - 0x414], 0
jne 0x461640
xor eax, eax
jmp 0x461659
lea eax, [ebp - 0x414]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x461650
sub eax, edx
mov ecx, dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040f700
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4616e5
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push eax
jmp 0x4616e0
push 0x4e2c9c
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x42c]
call fcn.00422160
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x464], eax
cmp esi, eax
je 0x4616d1
cmp dword [esi + 0x14], 0x10
jb 0x4616b8
push dword [esi]
call edi
mov eax, dword [ebp - 0x464]
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.0040f430
cmp dword [ebp - 0x418], 0x10
jb 0x4616e5
push dword [ebp - 0x42c]
call edi
add esp, 4
xor esi, esi
cmp dword [ebp + 0x20], 0x10
jb 0x4616f9
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 0x1c