Function at 0x140015278
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 [0x14005ab08]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r15, r9
mov r14, r8
mov rdi, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], r9
call fcn.14000e9b8
nop
lea rbx, [rdi + 0x20]
mov qword [rbp - 0x49], rbx
xor eax, eax
mov qword [rbx + 0x38], rax
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1400152ec
mov rax, qword [rcx]
movabs r10, 0xd99c8f3712533270
mov rdx, rbx
mov rax, qword [rax]
call qword [0x140047a68]
mov qword [rbx + 0x38], rax
xor eax, eax
lea rbx, [rdi + 0x60]
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov rdx, qword [r14 + 8]
sub rdx, qword [r14]
sar rdx, 5
test rdx, rdx
je 0x140015351
mov rcx, rbx
call fcn.14000e8c8
mov qword [rbp - 0x49], rbx
mov rsi, qword [rbx]
mov r12, qword [r14 + 8]
mov r14, qword [r14]
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rbx
jmp 0x140015346
mov rdx, r14
mov rcx, rsi
call fcn.14000e9b8
add rsi, 0x20
mov qword [rbp - 0x19], rsi
add r14, 0x20
cmp r14, r12
jne 0x14001532f
mov qword [rbx + 8], rsi
xor eax, eax
or qword [rdi + 0x78], 0xffffffffffffffff
lea r13, [rdi + 0x80]
mov qword [r13], rax
lea r12, [rdi + 0x88]
mov qword [r12], rax
mov dword [rdi + 0x90], eax
lea rsi, [rdi + 0x98]
mov qword [rsi], rax
lea r14, [rdi + 0xc0]
mov qword [r14], rax
mov qword [rdi + 0xc8], rax
mov qword [rdi + 0xd0], rax
mov qword [rdi + 0xd8], rax
mov ecx, 0x800
call fcn.1400407f0
mov qword [rdi + 0xc8], rax
add rax, 0x800
mov qword [rdi + 0xd8], rax
mov rcx, qword [rdi + 0xc8]
lea rbx, [rcx + 0x800]
xor edx, edx
mov r8d, 0x800
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rdi + 0xd0], rbx
xor ebx, ebx
mov qword [rbp - 0x49], rbx
lea rcx, [rbp - 0x49]
call fcn.1400160b8
nop
call fcn.14000e6ec
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x140015451
movabs rdx, 0x400000000000
test qword [rcx + 0x10], rdx
je 0x140015451
mov rax, qword [rcx + 0x18]
and rax, rdx
cmp rax, qword [rcx + 0x18]
jne 0x140015451
mov qword [rbp - 0x49], 0x1000000
lea rax, [rbp - 0x49]
mov qword [rbp - 1], rax
mov qword [rbp + 7], 8
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14004f129]
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]
lea rcx, [rbp - 0x49]
cmp rsi, rcx
je 0x140015681
mov rdx, rax
mov rcx, rsi
call fcn.140006eb0
mov rcx, qword [rbp + 0x5f]
cmp qword [rsi], rbx
je 0x1400157a4
xor r9d, r9d
xor r8d, r8d
lea esi, [r9 + 1]
mov edx, esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
lea rcx, [rbp - 0x49]
cmp r12, rcx
je 0x1400156aa
mov rdx, rax
mov rcx, r12
call fcn.140006eb0
mov rcx, qword [rbp + 0x5f]
cmp qword [r12], rbx
je 0x1400157b6
xor r9d, r9d
mov r8d, esi
mov edx, esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
lea rcx, [rbp - 0x49]
cmp r14, rcx
je 0x1400156d3
mov rdx, rax
mov rcx, r14
call fcn.140006eb0
mov rax, qword [r14]
mov rcx, qword [rbp + 0x5f]
test rax, rax
je 0x1400157c8
mov qword [rdi + 0xb8], rax
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140015520
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x42000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, esi
mov edx, esi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
mov r14, qword [rdi + 0x78]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015587
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]
xor ebx, ebx
mov qword [rdi + 0x78], rsi
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
seta al
mov rcx, qword [rbp + 0x5f]
test al, al
jne 0x1400157da
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x140015b20]
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 rsi, rax
mov r14, qword [r13]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015603
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]
xor ebx, ebx
mov qword [r13], rsi
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
seta al
mov rcx, qword [rbp + 0x5f]
test al, al
jne 0x1400157ec
mov rax, qword [r12]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rsi
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 0x1400156fc
cmp eax, 1
jne 0x14001574a
mov rcx, r13
call fcn.140016038
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 0x1400157fe
mov eax, dword [rbp - 0x49]
jmp 0x14001580a
test rax, rax
je 0x140015481
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x5f]
test eax, eax
je 0x140015783
jmp 0x140015481
test rax, rax
je 0x1400154c0
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x5f]
test eax, eax
je 0x14001578e
jmp 0x1400154c0
test rax, rax
je 0x1400154fc
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x5f]
test eax, eax
je 0x140015799
jmp 0x1400154fc
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x140015726
mov r8, qword [rcx]
cmp rcx, r15
setne dl
movabs r10, 0xed1dae5b305f0370
mov rax, qword [r8 + 0x20]
call qword [0x140047a68]
mov qword [r15 + 0x38], rbx
mov rax, rdi
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140040640
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.1400061c4
mov r9d, eax
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x4a
call fcn.140016324
int3
mov edx, 0x937
call fcn.140005a84
int3
mov edx, 0x937
call fcn.140005a84
int3
mov edx, 0x937
call fcn.140005a84
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x2c
call fcn.14001675c
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x2e
call fcn.14001675c
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x30
call fcn.14001675c
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x3b
call fcn.14001675c
int3
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x3e
call fcn.14001675c
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.1400061c4
mov r9d, eax
mov rcx, qword [rbp + 0x5f]
lea r8, str.onecore_amcoreoctagon_broker_sourcelibdirectorywatcher.cpp
mov edx, 0x48
call fcn.140016324
int3