Function at 0x140014fe8
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 [0x140059b08]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r13, r9
mov r15, r8
mov rsi, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], r9
call fcn.14000e22c
nop
lea rbx, [rsi + 0x20]
mov qword [rbp - 0x49], rbx
xor edx, edx
mov qword [rbx + 0x38], rdx
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x14001505c
mov rax, qword [rcx]
movabs r10, 0xd99c8f3712533270
mov rdx, rbx
mov rax, qword [rax]
call qword [0x140046a60]
mov qword [rbx + 0x38], rax
xor edx, edx
lea rdi, [rsi + 0x60]
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov r14, qword [r15]
mov r15, qword [r15 + 8]
cmp r14, r15
je 0x1400150ee
mov rbx, r15
sub rbx, r14
sar rbx, 5
movabs rax, 0x7ffffffffffffff
cmp rbx, rax
ja 0x14001553c
shl rbx, 5
mov rcx, rbx
call fcn.140007894
mov qword [rdi], rax
mov qword [rdi + 8], rax
add rax, rbx
mov qword [rdi + 0x10], rax
mov qword [rbp - 0x49], rdi
mov rbx, qword [rdi]
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rdi
mov rdx, r14
mov rcx, rbx
call fcn.14000e22c
add rbx, 0x20
mov qword [rbp - 0x19], rbx
add r14, 0x20
cmp r14, r15
jne 0x1400150c1
mov rdx, rbx
mov rcx, rbx
call fcn.14000e450
mov qword [rdi + 8], rbx
xor edx, edx
or qword [rsi + 0x78], 0xffffffffffffffff
mov qword [rsi + 0x80], rdx
lea r15, [rsi + 0x88]
mov qword [r15], rdx
mov dword [rsi + 0x90], edx
lea r14, [rsi + 0x98]
mov qword [r14], rdx
lea r12, [rsi + 0xc0]
mov qword [r12], rdx
mov qword [rsi + 0xc8], rdx
mov qword [rsi + 0xd0], rdx
mov qword [rsi + 0xd8], rdx
mov edi, 0x800
mov ecx, edi
call fcn.140007894
mov qword [rsi + 0xc8], rax
add rax, rdi
mov qword [rsi + 0xd8], rax
mov rbx, qword [rsi + 0xc8]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbx + 0x800]
mov qword [rsi + 0xd0], rax
call fcn.14000dfec
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x1400151dc
movabs rdx, 0x400000000000
test qword [rcx + 0x10], rdx
je 0x1400151dc
mov rax, qword [rcx + 0x18]
and rax, rdx
cmp rax, qword [rcx + 0x18]
jne 0x1400151dc
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, [0x14004dc49]
call fcn.1400019e4
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 0x140015239
mov r12, qword [r14]
test r12, r12
je 0x14001522d
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.1400059cc
nop
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
lea r12, [rsi + 0xc0]
jmp 0x140015247
test rbx, rbx
je 0x140015247
mov rcx, rbx
call fcn.1400059cc
nop
mov rcx, qword [rbp + 0x5f]
cmp qword [r14], 0
je 0x140015542
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 r15, rax
je 0x1400152ab
mov r14, qword [r15]
test r14, r14
je 0x1400152a6
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.1400059cc
nop
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [r15], rbx
jmp 0x1400152b9
test rbx, rbx
je 0x1400152b9
mov rcx, rbx
call fcn.1400059cc
nop
mov rcx, qword [rbp + 0x5f]
cmp qword [r15], 0
je 0x140015554
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 r12, rax
je 0x14001531f
mov r14, qword [r12]
test r14, r14
je 0x140015319
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.1400059cc
nop
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
jmp 0x14001532d
test rbx, rbx
je 0x14001532d
mov rcx, rbx
call fcn.1400059cc
nop
mov rax, qword [r12]
mov rcx, qword [rbp + 0x5f]
test rax, rax
je 0x140015566
mov qword [rsi + 0xb8], rax
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140015352
mov rcx, qword [rsi]
and qword [rsp + 0x30], 0
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 0x1400153bb
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]
nop
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 0x140015578
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x140015880]
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
lea r12, [rsi + 0x80]
mov r14, qword [r12]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001543f
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]
nop
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [r12], rdi
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
seta al
mov rcx, qword [rbp + 0x5f]
test al, al
jne 0x14001558a
mov rax, qword [r15]
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 0x1400154b4
cmp eax, 1
jne 0x140015503
mov rcx, r12
call fcn.140015d80
mov rcx, rax
lea rdx, [rbp - 0x49]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
je 0x14001559c
mov eax, dword [rbp - 0x49]
jmp 0x1400155a8
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x1400154df
mov r8, qword [rcx]
cmp rcx, r13
setne dl
movabs r10, 0xed1dae5b305f0370
mov rax, qword [r8 + 0x20]
call qword [0x140046a60]
and qword [r13 + 0x38], 0
mov rax, rsi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14003f700
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140006008
mov r9d, eax
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x4a
call fcn.14001603c
nop
call fcn.140003ca4
nop
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x2c
call fcn.140016430
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x2e
call fcn.140016430
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x30
call fcn.140016430
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x3b
call fcn.140016430
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x3e
call fcn.140016430
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140006008
mov r9d, eax
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x48
call fcn.14001603c
int3