Function at 0x1400150e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [0x140051660]
xor ebx, ebx
or r15, 0xffffffffffffffff
mov rbp, r8
mov rsi, r15
inc rsi
cmp word [r8 + rsi*2], bx
jne 0x14001510b
inc rsi
mov qword [rdi + 0x10], rdx
lea r14, [rdi + 0x68]
mov qword [0x1400516d8], rdx
cmp dword [r14], ebx
jne 0x140015194
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x60], rax
test rax, rax
je 0x140015194
mov qword [rsp + 0x28], r14
lea r8, [0x140014a90]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rdi + 8], rax
test rax, rax
je 0x140015181
mov rcx, qword [rdi + 0x60]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14001516b
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x140015194
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x60], rbx
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400151a6
call fcn.14003c2b8
mov qword [rdi + 0x50], rbx
mov eax, 2
mul rsi
cmovo rax, r15
mov rcx, rax
call fcn.14003c310
mov qword [rdi + 0x50], rax
test rax, rax
je 0x14001531c
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140001470
mov rsi, qword [rdi + 0x80]
test rsi, rsi
je 0x1400151f8
mov rcx, rsi
call fcn.140027adc
mov rcx, rsi
call fcn.14003c304
mov qword [rdi + 0x80], rbx
mov ecx, 0x78
call fcn.14003c2c4
test rax, rax
je 0x14001524a
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov qword [rax + 0x30], rbx
mov qword [rax + 0x38], rbx
mov qword [rax + 0x40], rbx
mov dword [rax + 0x48], ebx
mov qword [rax + 0x50], rbx
mov qword [rax + 0x58], rbx
mov qword [rax + 0x60], rbx
mov qword [rax + 0x68], 1
mov dword [rax + 0x70], 1
jmp 0x14001524d
mov rax, rbx
mov qword [rdi + 0x80], rax
test rax, rax
je 0x14001531c
cmp qword [rdi], rbx
je 0x14001526d
mov rcx, qword [rdi]
call fcn.140013dd8
mov qword [rdi], rbx
mov ecx, 0x2a8
call fcn.14003c2c4
test rax, rax
je 0x140015289
mov rcx, rax
call fcn.1400204d4
mov rcx, rax
jmp 0x14001528c
mov rcx, rbx
mov qword [rdi], rcx
test rcx, rcx
je 0x14001531c
mov rax, qword [rdi + 0x10]
xor r9d, r9d
mov qword [rcx + 0x288], rax
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
jne 0x1400152d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
lea ecx, [rdi + 0x57]
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140015318
mov ecx, dword [r14]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5cc
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14001530f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140015321
mov eax, 0x8007000e
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret