Function at 0x140013e48
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov rax, qword [0x14004ba88]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r15, r9
mov r14, r8
mov rsi, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], r9
call fcn.14000da98
nop
lea rbx, [rsi + 0x20]
mov qword [rbp - 0x49], rbx
xor edi, edi
mov qword [rbx + 0x38], rdi
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x140013eb0
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax]
call qword [case.0x140034af6.0]
mov qword [rbx + 0x38], rax
lea rbx, [rsi + 0x60]
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rdx, qword [r14 + 8]
cmp qword [r14], rdx
je 0x140013f15
sub rdx, qword [r14]
sar rdx, 5
mov rcx, rbx
call fcn.14000d9a8
mov qword [rbp - 0x49], rbx
mov rdi, qword [rbx]
mov r12, qword [r14 + 8]
mov r14, qword [r14]
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rbx
jmp 0x140013f0a
mov rdx, r14
mov rcx, rdi
call fcn.14000da98
add rdi, 0x20
mov qword [rbp - 0x19], rdi
add r14, 0x20
cmp r14, r12
jne 0x140013ef3
mov qword [rbx + 8], rdi
xor edi, edi
or qword [rsi + 0x78], 0xffffffffffffffff
mov qword [rsi + 0x80], rdi
lea r12, [rsi + 0x88]
mov qword [r12], rdi
mov dword [rsi + 0x90], edi
lea r14, [rsi + 0x98]
mov qword [r14], rdi
lea r13, [rsi + 0xc0]
mov qword [r13], rdi
mov qword [rsi + 0xc8], rdi
mov qword [rsi + 0xd0], rdi
mov qword [rsi + 0xd8], rdi
mov edi, 0x800
mov ecx, edi
call fcn.140034480
mov qword [rsi + 0xc8], rax
lea rbx, [rax + 0x800]
mov qword [rsi + 0xd8], rbx
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rsi + 0xd0], rbx
call fcn.14000d7c4
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x140013ffa
movabs rdx, 0x400000000000
test qword [rcx + 0x10], rdx
je 0x140013ffa
mov rax, qword [rcx + 0x18]
and rax, rdx
cmp rax, qword [rcx + 0x18]
jne 0x140013ffa
mov qword [rbp - 0x49], 0x1000000
lea rax, [rbp - 0x49]
mov qword [rbp - 1], rax
mov dword [rbp + 7], 8
and dword [rbp + 0xb], 0
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14004156e]
call fcn.140001a58
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rbx, rax
lea rax, [rbp - 0x49]
cmp r14, rax
je 0x140014056
mov r12, qword [r14]
test r12, r12
je 0x14001404a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, r12
call fcn.140005248
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [r14], rbx
xor ebx, ebx
lea r12, [rsi + 0x88]
test rbx, rbx
je 0x140014063
mov rcx, rbx
call fcn.140005248
mov rcx, qword [rbp + 0x5f]
cmp qword [r14], 0
je 0x140014354
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rbx, rax
lea rax, [rbp - 0x49]
cmp r12, rax
je 0x1400140c8
mov r14, qword [r12]
test r14, r14
je 0x1400140c2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, r14
call fcn.140005248
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [r12], rbx
xor ebx, ebx
test rbx, rbx
je 0x1400140d5
mov rcx, rbx
call fcn.140005248
mov rcx, qword [rbp + 0x5f]
cmp qword [r12], 0
je 0x140014366
xor r9d, r9d
lea edx, [r9 + 1]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rbx, rax
lea rax, [rbp - 0x49]
cmp r13, rax
je 0x14001413b
mov r14, qword [r13]
test r14, r14
je 0x140014135
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, r14
call fcn.140005248
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [r13], rbx
xor ebx, ebx
test rbx, rbx
je 0x140014148
mov rcx, rbx
call fcn.140005248
mov rax, qword [r13]
mov rcx, qword [rbp + 0x5f]
xor r13d, r13d
test rax, rax
je 0x140014378
mov qword [rsi + 0xb8], rax
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140014170
mov rcx, qword [rsi]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x42000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
mov r14, qword [rsi + 0x78]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400141d7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rsi + 0x78], rdi
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
seta al
mov rcx, qword [rbp + 0x5f]
test al, al
jne 0x14001438a
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9, rsi
lea r8, [0x140014670]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
mov r14, qword [rsi + 0x80]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014255
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rsi + 0x80], rdi
mov rcx, rdi
test rdi, rdi
je 0x14001426f
cmp rdi, 0xffffffffffffffff
je 0x14001426f
mov al, r13b
jmp 0x140014274
mov al, 1
mov rdi, rcx
mov rcx, qword [rbp + 0x5f]
test al, al
jne 0x14001439c
mov rax, qword [r12]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rdi
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x41]
lea ecx, [r8 + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
nop dword [rax + rax]
test eax, eax
je 0x1400142d7
cmp eax, 1
jne 0x14001431b
lea rdx, [rbp - 0x49]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
je 0x1400143ae
mov eax, dword [rbp - 0x49]
jmp 0x1400143ba
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1400142f7
mov r8, qword [rcx]
cmp rcx, r15
setne dl
invalid
invalid