Function at 0x4620a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59091d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00472410
add esp, 4
mov byte [ebp - 0xd], 1
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebx + 2]
lea ebx, [ebx]
push 0
push ecx
mov eax, esp
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], esi
mov eax, esp
mov dword [eax], ecx
call fcn.00470730
add esp, 0xc
test al, al
jne 0x462385
cmp byte [ebp - 0xd], al
je 0x462358
push esi
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x48]
push str._s.old
push eax
call fcn.0046a950
add esp, 0xc
test byte [ebp - 0x39], 0x80
mov dword [ebp - 4], 0
je 0x462138
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x46213b
mov ebx, 0x593534
jmp 0x462145
lea eax, [ebp - 0x48]
test eax, eax
mov ebx, 0x593534
cmovne ebx, eax
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x1a], 0x400
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 4
push 0
push 0
push ebx
mov byte [ebp - 4], 1
mov byte [ebp - 0x1b], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x24], edi
call fcn.0046d920
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x4621dc
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x1b], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x24], edi
call fcn.0046d920
add esp, 0x24
mov ecx, dword [ebp + 0xc]
mov eax, 0x593534
test ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmovne eax, ecx
mov dword [ebp - 0x2c], 0x4000000
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00459850
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp byte [ebp - 0x2c], 0
mov esi, eax
mov byte [ebp - 4], 1
je 0x46222e
push dword [ebp - 0x38]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x2b], 0
je 0x46223f
push dword [ebp - 0x34]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x2a], 0
je 0x462250
push dword [ebp - 0x30]
call fcn.0056b454
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x4000000
test esi, esi
je 0x4622ff
test edi, edi
jne 0x4622b0
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x1b], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x24], edi
call fcn.0046d920
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4622ff
test edi, edi
jne 0x4622f4
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x1b], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
call fcn.0046d920
add esp, 0x24
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
call fcn.0056b454
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x4000000
test byte [ebp - 0x39], 0x80
mov dword [ebp - 4], 3
je 0x462344
call fcn.0047fa50
push 0
push dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov ebx, dword [ebp - 0x14]
mov edi, 2
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
jmp 0x462366
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x64
mov dword [ebp - 0x14], ebx
cmp ebx, 0x3e8
jl 0x4620e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret