Function at 0x1000079c4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rcx
and qword [rax + 0x10], 0
and qword [rax + 8], 0
xor esi, esi
xor edi, edi
lea r15, [0x10000c1b8]
mov rcx, qword [0x10000c1b8]
cmp rcx, r15
je 0x100007a1d
bt dword [rcx + 0x1c], 0xa
jae 0x100007a1d
lea r8, [0x100001980]
mov dx, 0x1c
mov rcx, qword [rcx + 0x10]
call fcn.100006ba8
and qword [rbp], rsi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [0x1000025e8]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1000025d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov edx, eax
lea rcx, [0x100001fa8]
call fcn.100006e38
lea rdx, [0x100001d98]
test ebx, ebx
js 0x100007a91
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx]
lea r8, [rsp + 0xb0]
call qword [rax + 0x28]
mov ebx, eax
mov edx, eax
lea rcx, [0x100001fe8]
call fcn.100006e38
test ebx, ebx
jns 0x100007dc3
xor r9d, r9d
xor r8d, r8d
lea r13d, [r9 + 1]
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x10000ca58], rax
mov r14d, 0x80070000
test rax, rax
jne 0x100007acb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x100007acd
xor ebx, ebx
mov edx, ebx
lea rcx, [0x100002010]
call fcn.100006e38
test ebx, ebx
js 0x100007d7d
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x10000ca60], rax
test rax, rax
jne 0x100007b11
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x100007d7d
lea rax, [0x10000ca50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x1000077a8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x100007b58
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x100007b5a
xor ebx, ebx
mov edx, ebx
lea rcx, [0x100002028]
call fcn.100006e38
test ebx, ebx
js 0x100007d7d
or edx, 0xffffffff
mov rcx, qword [0x10000ca60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100007b97
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x100007ba4
mov rcx, qword [0x10000ca60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
js 0x100007d7d
mov ecx, 0x28
call fcn.100008fcc
mov rbx, rax
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x100007bec
lea rax, [0x100002550]
mov qword [rbx], rax
mov ecx, 0x18
call fcn.100008fcc
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 0x18], rax
and qword [rbx + 0x20], 0
jmp 0x100007bee
xor ebx, ebx
test rbx, rbx
je 0x100007bfa
mov rdi, rbx
xor ebx, ebx
jmp 0x100007bff
mov ebx, 0x80004005
mov edx, ebx
lea rcx, [0x100002048]
call fcn.100006e38
test ebx, ebx
js 0x100007d7d
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov word [rsp + 0x38], 0x1f
lea rax, [0x100001dc0]
mov qword [rsp + 0x40], rax
test rdi, rdi
je 0x100007c63
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
lea rdx, [0x100001f48]
mov rcx, rdi
call qword [rax + 0x30]
mov ebx, eax
mov edx, eax
lea rcx, [0x100002070]
call fcn.100006e38
test ebx, ebx
js 0x100007d7d
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], 0x1f
lea r13, [0x100001d98]
mov qword [rsp + 0x58], r13
test rdi, rdi
je 0x100007cb9
mov rax, qword [rdi]
lea r8, [rsp + 0x50]
lea rdx, [0x1000019c8]
mov rcx, rdi
call qword [rax + 0x30]
mov ebx, eax
mov edx, eax
lea rcx, [0x1000020c0]
call fcn.100006e38
test ebx, ebx
js 0x100007d7d
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx]
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8, rdi
mov rdx, r13
call qword [rax + 0x30]
mov ebx, eax
mov edx, eax
lea rcx, [0x100002128]
call fcn.100006e38
test ebx, ebx
js 0x100007d7d
mov rcx, qword [0x10000ca58]
test rcx, rcx
je 0x100007d27
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100007d27
mov rcx, qword [0x10000ca58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x100007d7d
mov rcx, qword [0x10000c1b8]
cmp rcx, r15
je 0x100007d54
test byte [rcx + 0x1c], 0x10
je 0x100007d54
lea r9, [0x100002150]
lea r8, [0x100001980]
mov dx, 0xa
mov rcx, qword [rcx + 0x10]
call fcn.100006c68
mov ebx, 0x8000ffff
mov rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x100007d7d
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx]
call qword [rax + 0x40]
and qword [rsp + 0xb0], 0
mov rcx, rdi
call fcn.100008f48
test rsi, rsi
je 0x100007d93
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x10000ca60]
test rcx, rcx
je 0x100007dad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x10000ca60], 0
mov rcx, qword [0x10000ca58]
test rcx, rcx
je 0x100007dbf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
js 0x100007dcf
mov rax, qword [rsp + 0xb0]
mov qword [rbp], rax
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x100007de2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x10000c1b8]
cmp rcx, r15
je 0x100007e09
bt dword [rcx + 0x1c], 0xa
jae 0x100007e09
lea r8, [0x100001980]
mov dx, 0x1d
mov rcx, qword [rcx + 0x10]
call fcn.100006ba8
mov eax, ebx
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret