Function at 0x140071970
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
lea rbx, [0x1415ddd60]
mov rcx, rbx
call fcn.140069b60
or rbx, 1
mov qword [rsp + 0x50], rbx
mov rax, qword [0x1415db140]
mov r8d, dword [rax]
mov rax, qword [0x1415db140]
cmp r8d, 1
jne 0x1400719d6
movsxd rdx, dword [rax + 8]
lea ecx, [rdx + 1]
cmp ecx, dword [rax + 4]
jg 0x1400719d6
mov qword [rax + rdx*8 + 0x10], rdi
jmp 0x140071a14
mov edx, dword [rax + 8]
inc edx
xor r9d, r9d
lea ecx, [r9 + 0x18]
lea r8d, [r9 + 8]
call fcn.1400464e0
mov r8d, eax
mov rax, qword [0x1415db140]
mov edx, dword [rax + 8]
lea rcx, [0x1415db140]
call fcn.1400711b0
mov r11, qword [0x1415db140]
movsxd rax, dword [r11 + 8]
mov qword [r11 + rax*8 + 0x10], rdi
mov rax, qword [0x1415db140]
inc dword [rax + 8]
mov rax, qword [0x1415db148]
mov ecx, dword [rax]
mov rax, qword [0x1415db148]
cmp ecx, 1
jne 0x140071a46
movsxd rdx, dword [rax + 8]
lea ecx, [rdx + 1]
cmp ecx, dword [rax + 4]
jg 0x140071a46
mov qword [rax + rdx*8 + 0x10], rsi
jmp 0x140071a84
mov edx, dword [rax + 8]
inc edx
xor r9d, r9d
lea ecx, [r9 + 0x18]
lea r8d, [r9 + 8]
call fcn.1400464e0
mov r8d, eax
mov rax, qword [0x1415db148]
mov edx, dword [rax + 8]
lea rcx, [0x1415db148]
call fcn.1400711b0
mov r11, qword [0x1415db148]
movsxd rax, dword [r11 + 8]
mov qword [r11 + rax*8 + 0x10], rsi
mov rax, qword [0x1415db148]
inc dword [rax + 8]
cmp qword [0x1415ddd48], 0
jne 0x140071bb2
cmp qword [0x1415ddd50], 0
jne 0x140071b98
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1415ddd50], rax
mov rax, qword [0x1415db140]
mov ecx, dword [rax]
cmp ecx, 1
je 0x140071ae9
mov rax, qword [0x1415db140]
mov r8d, dword [rax + 4]
mov edx, dword [rax + 8]
lea rcx, [0x1415db140]
call fcn.1400711b0
mov rax, qword [0x1415db140]
lea rbp, [rax + 0x10]
sub rbp, rax
sub rbp, 0x10
sar rbp, 3
mov rsi, qword [0x1415ddd50]
mov edx, dword [rax]
mov rax, qword [0x1415db140]
cmp edx, 1
jne 0x140071b1e
mov edx, dword [rax + 8]
inc edx
cmp edx, dword [rax + 4]
jle 0x140071b53
mov edx, dword [rax + 8]
inc edx
xor r9d, r9d
lea ecx, [r9 + 0x18]
lea r8d, [r9 + 8]
call fcn.1400464e0
mov r8d, eax
mov rax, qword [0x1415db140]
mov edx, dword [rax + 8]
lea rcx, [0x1415db140]
call fcn.1400711b0
mov rax, qword [0x1415db140]
movsxd rcx, ebp
lea rdi, [rax + rcx*8 + 0x10]
lea rbx, [rdi + 8]
mov ecx, dword [rax + 8]
sub ecx, ebp
movsxd r8, ecx
shl r8, 3
mov rdx, rdi
mov rcx, rbx
call fcn.1400ae630
cmp rbx, rdi
je 0x140071b8e
nop dword [rax + rax]
sub rbx, 8
je 0x140071b89
mov qword [rbx], rsi
cmp rbx, rdi
jne 0x140071b80
mov rax, qword [0x1415db140]
inc dword [rax + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400715c0]
call fcn.1400b62cc
mov qword [0x1415ddd48], rax
jmp 0x140071bc0
mov rcx, qword [0x1415ddd50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rcx, qword [rsp + 0x50]
test cl, 1
je 0x140071bd3
and rcx, 0xfffffffffffffffe
call fcn.140069af0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret