Function at 0x140015120
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 0x14001514b
inc rsi
mov qword [rdi + 0x10], rdx
lea r14, [rdi + 0x68]
mov qword [0x1400516d8], rdx
cmp dword [r14], ebx
jne 0x1400151d4
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 0x1400151d4
mov qword [rsp + 0x28], r14
lea r8, [0x140014ad0]
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 0x1400151c1
mov rcx, qword [rdi + 0x60]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400151ab
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400151d4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x60], rbx
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400151e6
call fcn.14003c408
mov qword [rdi + 0x50], rbx
mov eax, 2
mul rsi
cmovo rax, r15
mov rcx, rax
call fcn.14003c460
mov qword [rdi + 0x50], rax
test rax, rax
je 0x14001535c
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140001470
mov rsi, qword [rdi + 0x80]
test rsi, rsi
je 0x140015238
mov rcx, rsi
call fcn.140027b3c
mov rcx, rsi
call fcn.14003c454
mov qword [rdi + 0x80], rbx
mov ecx, 0x78
call fcn.14003c414
test rax, rax
je 0x14001528a
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 0x14001528d
mov rax, rbx
mov qword [rdi + 0x80], rax
test rax, rax
je 0x14001535c
cmp qword [rdi], rbx
je 0x1400152ad
mov rcx, qword [rdi]
call fcn.140013e08
mov qword [rdi], rbx
mov ecx, 0x2a8
call fcn.14003c414
test rax, rax
je 0x1400152c9
mov rcx, rax
call fcn.140020538
mov rcx, rax
jmp 0x1400152cc
mov rcx, rbx
mov qword [rdi], rcx
test rcx, rcx
je 0x14001535c
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 0x140015319
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 0x140015358
mov ecx, dword [r14]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5cc
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14001534f
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 0x140015361
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