Function at 0x1400019a0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push r12
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor ebx, ebx
mov qword [rbp + 7], r9
xor r12b, r12b
mov qword [rbp + 0xf], rdx
cmp byte [0x14000668c], bl
mov r14, r9
mov qword [rbp - 0x29], rcx
mov qword [rbp - 1], rbx
mov dword [rbp + 0x17], ebx
mov qword [rbp - 9], rbx
mov qword [rbp - 0x11], rbx
jne 0x1400019f3
xor al, al
jmp 0x140001fd4
xor r9d, r9d
mov qword [rsp + 0x88], r13
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r13, rax
test rax, rax
je 0x140001fc8
lea rax, [rbp + 0x17]
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x28], rax
lea r8, [0x140001980]
mov r9, r13
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
je 0x140001fa9
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0x90], rdi
nop dword [rax]
mov esi, dword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 5
mov ebx, eax
mov edi, 0xffffffff
call fcn.140001130
mov r10, rax
test rax, rax
je 0x140001f56
mov rdx, rax
cmp qword [rax + 0x50], rbx
je 0x140001a9f
nop
mov eax, dword [rdx]
test eax, eax
je 0x140001ad1
add rdx, rax
cmp qword [rdx + 0x50], rbx
jne 0x140001a90
mov r8d, dword [rdx + 4]
xor ecx, ecx
test r8d, r8d
je 0x140001ad1
lea rax, [rdx + 0x130]
cmp qword [rax], rsi
je 0x140001ac3
inc ecx
add rax, 0x50
cmp ecx, r8d
jb 0x140001ab1
jmp 0x140001ad1
lea rcx, [rcx + rcx*4]
add rcx, rcx
mov edi, dword [rdx + rcx*8 + 0x144]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x140001f56
cmp edi, 5
je 0x140001af3
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x140001a60
mov ecx, 0x10
xor r14d, r14d
call fcn.140001130
mov rdi, rax
test rax, rax
je 0x140001f52
xor ebx, ebx
cmp dword [rax], ebx
jbe 0x140001b3d
lea rcx, [rbx + rbx*2]
lea rsi, [rdi + rcx*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movzx eax, word [rsi + 8]
cmp eax, ecx
jne 0x140001b31
cmp word [rsi + 0xe], r15w
je 0x140001b39
inc ebx
cmp ebx, dword [rdi]
jb 0x140001b12
jmp 0x140001b3d
mov r14, qword [rsi + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14, r14
je 0x140001f52
mov qword [rbp - 0x21], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 9]
mov rcx, rax
lea rdx, [r14 + 0x38]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
call qword [0x1400066b0]
test eax, eax
js 0x140001f52
mov qword [rbp - 0x21], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x11]
mov rcx, rax
lea rdx, [r14 + 0x58]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
call qword [0x1400066b0]
test eax, eax
js 0x140001f52
mov rdi, qword [rbp - 9]
add rdi, 0xfffffffffffffff8
cmp rdi, qword [rbp - 0x11]
jbe 0x140001f52
xor r14d, r14d
mov qword [rbp - 0x21], r14
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x21]
mov rcx, rax
mov rdx, rdi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [0x1400066b0]
test eax, eax
js 0x140001f52
mov rcx, qword [rbp - 0x21]
mov rdx, qword [0x1400066c8]
cmp rcx, rdx
jbe 0x140001c23
mov eax, dword [0x1400066a0]
add rax, rdx
cmp rcx, rax
jb 0x140001c32
sub rdi, 8
cmp rdi, qword [rbp - 0x11]
ja 0x140001bd0
jmp 0x140001f52
test rdi, rdi
je 0x140001f52
mov rax, qword [0x140006678]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x21]
mov rcx, rax
mov rdx, rdi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x19]
mov rcx, rax
lea rdx, [rdi + 0x28]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rsi, qword [rbp + 0xf]
mov qword [rbp + 0xf], r14
mov rax, qword [rsi]
mov qword [rbp - 0x29], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0x30]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [rsi + 8]
mov qword [rbp - 0x29], rax
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0x38]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [0x140006670]
mov qword [rbp - 0x29], rax
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0x50]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [0x140006690]
mov qword [rbp - 0x29], rax
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0xc0]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
lea rax, [rbp - 1]
mov qword [rbp + 0xf], r14
mov qword [rbp - 0x29], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0xc8]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [0x140006698]
mov qword [rbp - 0x29], rax
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0xd0]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [0x140006680]
mov qword [rbp - 0x29], rax
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0xd8]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [0x140006678]
mov qword [rbp - 0x29], rax
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0xe0]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov rax, qword [0x140006668]
mov qword [rbp - 0x29], rax
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0x108]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov qword [rbp - 0x29], r15
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0x110]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
mov qword [rbp - 0x29], 0x1337
mov qword [rbp + 0xf], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp - 0x29]
mov rcx, rax
lea rdx, [rdi + 0x118]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
call qword [0x1400066a8]
test eax, eax
js 0x140001f52
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov r14, qword [rbp + 7]
mov rcx, r13
mov dword [rbp + 7], 0
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 7]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rbp + 7], 0x1337
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xd0]
jne 0x140001fa9
test r14, r14
je 0x140001fa6
mov rax, qword [rbp - 1]
mov qword [r14], rax
mov r12b, 1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x140001fc0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
movzx eax, r12b
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400024c0
add rsp, 0x98
pop r14
pop r12
pop rbx
pop rbp
ret