Function at 0x1400017bc
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r12
push r14
sub rsp, 0x130
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140045008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
lea r12d, [r9 + 1]
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateEventW]
mov qword [rdi + 0x2a8], rax
test rax, rax
jne 0x14000184e
lea rsi, [0x140045158]
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x140001844
test byte [rcx + 0x1c], r12b
je 0x140001844
cmp byte [rcx + 0x19], 2
jb 0x140001844
lea edx, [rax + 0xa]
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov eax, 0x8007000e
jmp 0x140001c17
mov rax, qword [0x140045028]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [rsp + 0x38], xmm0
and qword [0x140045048], 0
and qword [0x140045050], 0
lea r9, [0x140045040]
lea r8, [0x140045020]
lea rdx, [0x140001010]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventRegister]
test eax, eax
jne 0x1400018ae
mov r8, qword [0x140045028]
movzx r9d, word [r8]
lea edx, [rax + 2]
mov rcx, qword [0x140045040]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventSetInformation]
call fcn.14000164c
and qword [rdi + 0x2b0], 0
lea rsi, [0x140045158]
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x1400018f2
test byte [rcx + 0x1c], r12b
je 0x1400018f2
cmp byte [rcx + 0x19], 4
jb 0x1400018f2
mov edx, 0xb
mov r9d, eax
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400014c8
mov ecx, 0x198
call fcn.140038d0c
test rax, rax
je 0x140001909
mov rcx, rax
call fcn.140004570
mov qword [0x140045858], rax
test rax, rax
jne 0x14000194a
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x140001940
test byte [rcx + 0x1c], r12b
je 0x140001940
cmp byte [rcx + 0x19], 2
jb 0x140001940
lea edx, [rax + 0xc]
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov eax, 0x8007000e
jmp 0x140001c17
mov r9d, 0x64
lea r8, [rsp + 0x50]
lea edx, [r9 + 2]
mov rcx, qword [0x140045860]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
test eax, eax
jne 0x1400019b6
lea r8, [0x14003bfb0]
mov ebx, 0xc8
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140003c48
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x1400019b6
test byte [rcx + 0x1c], r12b
je 0x1400019b6
cmp byte [rcx + 0x19], 3
jb 0x1400019b6
mov edx, 0xd
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016d8
lea rdx, [rsp + 0x50]
call fcn.1400046ec
mov ebx, eax
test eax, eax
jns 0x1400019fd
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x1400019f6
test byte [rcx + 0x1c], r12b
je 0x1400019f6
cmp byte [rcx + 0x19], 2
jb 0x1400019f6
mov edx, 0xe
mov r9d, eax
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400014c8
mov eax, ebx
jmp 0x140001c17
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x140001f20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov qword [rdi + 0x2b0], rax
test rax, rax
jne 0x140001a77
mov rax, qword [0x140045158]
cmp rax, rsi
je 0x140001a65
test byte [rax + 0x1c], r12b
je 0x140001a65
cmp byte [rax + 0x19], 2
jb 0x140001a65
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r9d, eax
mov edx, 0xf
lea r8, [0x14003c0f0]
mov rcx, qword [0x140045158]
mov rcx, qword [rcx + 0x10]
call fcn.1400014c8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
call fcn.140003e60
jmp 0x140001c17
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThreadId]
mov dword [rdi + 0x28c], eax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateEventW]
test rax, rax
jne 0x140001aaf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140001ac0
mov qword [rdi + 0x2a0], rax
mov rcx, rdi
call fcn.140002cac
mov ebx, eax
test ebx, ebx
jne 0x140001ae1
lea edx, [rbx + 4]
mov rcx, rdi
call fcn.140002524
or edx, 0xffffffff
mov rcx, qword [rdi + 0x2a0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
test ebx, ebx
js 0x140001b2f
xor ebx, ebx
mov r14, qword [0x140045c40]
mov rax, qword [0x140045c48]
jmp 0x140001b1b
test ebx, ebx
jne 0x140001b20
mov rcx, qword [r14]
test rcx, rcx
je 0x140001b17
mov ecx, dword [rcx + 0x28]
test ecx, ecx
je 0x140001b17
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoRevokeClassObject]
mov ebx, eax
mov rax, qword [0x140045c48]
add r14, 8
cmp r14, rax
jb 0x140001af5
cmp byte [rdi + 0x60], 0
je 0x140001b2f
mov ecx, dword [rdi + 0x5c]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov rcx, qword [0x140045858]
test rcx, rcx
je 0x140001b81
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x140001b68
test byte [rcx + 0x1c], r12b
je 0x140001b68
cmp byte [rcx + 0x19], 4
jb 0x140001b68
mov edx, 0x10
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov rcx, qword [rdi + 0x2a8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
call fcn.140004eac
mov rcx, qword [0x140045858]
cmp qword [rdi + 0x2b0], 0
je 0x140001bcf
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x140001bb8
test byte [rcx + 0x1c], r12b
je 0x140001bb8
cmp byte [rcx + 0x19], 4
jb 0x140001bb8
mov edx, 0x11
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
or edx, 0xffffffff
mov rcx, qword [rdi + 0x2b0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, qword [0x140045858]
test rcx, rcx
je 0x140001be1
call fcn.140001e24
and qword [0x140045858], 0
mov rcx, qword [0x140045158]
cmp rcx, rsi
je 0x140001c0e
test byte [rcx + 0x1c], r12b
je 0x140001c0e
cmp byte [rcx + 0x19], 4
jb 0x140001c0e
mov edx, 0x12
lea r8, [0x14003c0f0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov eax, ebx
jmp 0x140001c17
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140039130
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret