Function at 0x5a458b
Capabilities:
Delete file
Move file

Disassembly:
push 0x1c
mov eax, 0x60d499
call fcn.004db48b
cmp dword [0x673c90], 0
je 0x5a45ad
cmp dword [0x673bdc], 0
jne 0x5a47fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor ebx, ebx
mov eax, dword [0x673514]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
test eax, eax
jle 0x5a47fd
push ebx
mov ecx, 0x673510
call fcn.0042b6f7
mov esi, dword [eax]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x5a45e5
lock inc dword [esi + 0x34]
and dword [ebp - 4], 0
test esi, esi
je 0x5a4799
cmp dword [esi + 0x2c], 0
je 0x5a4799
cmp dword [esi + 0x24], 0
jne 0x5a460a
or dword [ebp - 4], 0xffffffff
jmp 0x5a47a1
cmp dword [esi + 0x28], 0
jne 0x5a4615
mov dword [esi + 0x28], edi
jmp 0x5a4601
mov eax, edi
sub eax, dword [esi + 0x28]
cmp eax, 0x7530
jae 0x5a4627
cmp dword [esi + 0x24], 5
jb 0x5a4601
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d36e
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x14]
cmp dword [edi - 8], 0
jne 0x5a46fd
push 0x67476c
lea ecx, [ebp - 0x18]
call fcn.0040d2ee
mov ebx, 0x63a8d4
push ebx
call fcn.00505bb3
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f454
mov ecx, dword [ebp - 0x18]
call fcn.005a1fc4
mov ebx, 0x3e7
mov eax, dword [0x668294]
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push str._s_04d.ttbl
push eax
call fcn.0040cefd
mov ecx, dword [ebp - 0x10]
add esp, 0x10
call fcn.00414841
test eax, eax
je 0x5a46bb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a46b0
call fcn.00407965
dec ebx
cmp ebx, 0x384
jg 0x5a4674
jmp 0x5a46dd
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d242
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a46da
call fcn.00407965
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a46f0
call fcn.00407965
cmp dword [edi - 8], 0
mov ebx, dword [ebp - 0x1c]
je 0x5a47b7
mov eax, dword [0x668294]
push str..tmp
mov dword [ebp - 0x10], eax
call fcn.00505bb3
mov dword [esp], str..tmp
lea ecx, [ebp - 0x10]
push eax
push edi
push dword [edi - 8]
call fcn.0040f4c7
push 1
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp - 0x10]
call fcn.00593d60
test eax, eax
jne 0x5a4776
push dword [ebp - 0x10]
and dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a4756
call fcn.00407965
lea ecx, [edi - 0xc]
cmp ecx, 0x668010
je 0x5a4766
call fcn.00407965
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00422d15
mov edi, dword [ebp - 0x20]
jmp 0x5a47a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
mov ecx, esi
call fcn.00422d68
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
jmp 0x5a4743
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5a47a8
mov ecx, esi
call fcn.00422d15
inc ebx
mov dword [ebp - 0x1c], ebx
cmp ebx, dword [ebp - 0x24]
jl 0x5a45cd
jmp 0x5a47fd
mov edi, dword [ebp - 0x24]
xor ebx, ebx
push ebx
mov ecx, 0x673510
call fcn.0042b6f7
mov ecx, dword [eax]
test ecx, ecx
je 0x5a47de
lock inc dword [ecx + 0x34]
and dword [ecx + 0x24], 0
and dword [ecx + 0x28], 0
call fcn.00422d15
inc ebx
cmp ebx, edi
jl 0x5a47bc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5a47f6
call fcn.00407965
mov ecx, esi
call fcn.00422d15
call fcn.004db459
ret