Function at 0x100005244
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rax, [0x1000020a0]
mov qword [rcx], rax
lea rax, [rcx + 8]
lea rcx, [0x100002158]
mov qword [rax], rcx
mov ecx, 0x10
mov dword [rbx + 0x68], 0xc0000001
mov qword [rsp + 0x20], rax
mov word [rsp + 0x28], cx
test rax, rax
je 0x100005291
mov word [rax + 0xc], cx
mov ecx, 0xffff
mov word [rax + 0xe], cx
mov ecx, dword [rbx + 0x7c]
test ecx, ecx
je 0x1000052a2
call qword [sym.imp.WINMM.dll_timeKillEvent]
and dword [rbx + 0x7c], 0
and dword [rbx + 0x80], 0
and dword [rbx + 0x84], 0
mov rcx, rbx
call fcn.10000c3fc
mov rcx, rbx
call fcn.10000a538
mov rcx, rbx
call fcn.100009d3c
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x1000052ef
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x90], 0
mov rcx, qword [rbx + 0x70]
cmp dword [rcx - 0x10], 0
je 0x100005308
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbx + 0x70]
call fcn.100005e8c
and qword [rbx + 0x538], 0
lea rcx, [rsp + 0x20]
call fcn.100010950
mov rcx, qword [0x100015d88]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp 0x1000053d4
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x590]
test rcx, rcx
je 0x1000053ef
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x588]
test rcx, rcx
je 0x100005401
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x580]
test rcx, rcx
je 0x100005413
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x578]
test rcx, rcx
je 0x100005425
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x570]
test rcx, rcx
je 0x100005437
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x568]
test rcx, rcx
je 0x100005449
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x560]
test rcx, rcx
je 0x10000545b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x558]
test rcx, rcx
je 0x10000546d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x550]
test rcx, rcx
je 0x10000547f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x548]
test rcx, rcx
je 0x100005491
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x540]
test rcx, rcx
je 0x1000054a3
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbx + 0xa0]
call fcn.10000e428
mov rdx, qword [rbx + 0x70]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000054ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbx + 8]
add rsp, 0x20
pop rbx
jmp 0x1000082e4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x100002528]
mov rbx, rcx
or rdi, 0xffffffffffffffff
mov qword [rcx], rax
mov rcx, qword [rcx + 0x48]
cmp rcx, rdi
je 0x100008312
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100008326
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
and qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x58]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x100008344
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbx + 0x50]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x100008362
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbx + 0x30]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x100008380
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbx + 0x28]
mov eax, edi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x10000839e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret