Function at 0x1400017b4
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 [0x1400491f8]
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_1_0.dll_CreateEventW]
mov qword [rdi + 0x2a8], rax
test rax, rax
jne 0x140001846
lea rsi, [0x140049138]
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x14000183c
test byte [rcx + 0x1c], r12b
je 0x14000183c
cmp byte [rcx + 0x19], 2
jb 0x14000183c
lea edx, [rax + 0xa]
lea r8, [0x140040988]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov eax, 0x8007000e
jmp 0x140001c15
mov rax, qword [0x1400490a8]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [rsp + 0x38], xmm0
and qword [0x1400490c8], 0
and qword [0x1400490d0], 0
lea r9, [0x1400490c0]
lea r8, [0x1400490a0]
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 0x1400018a6
mov r8, qword [0x1400490a8]
movzx r9d, word [r8]
lea edx, [rax + 2]
mov rcx, qword [0x1400490c0]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventSetInformation]
call fcn.14000164c
and qword [rdi + 0x2b0], 0
lea rsi, [0x140049138]
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x1400018ea
test byte [rcx + 0x1c], r12b
je 0x1400018ea
cmp byte [rcx + 0x19], 4
jb 0x1400018ea
mov edx, 0xb
mov r9d, eax
lea r8, [0x140040988]
mov rcx, qword [rcx + 0x10]
call fcn.1400014d0
mov ecx, 0x198
call fcn.14003d344
test rax, rax
je 0x140001901
mov rcx, rax
call fcn.140004300
mov qword [0x140049860], rax
test rax, rax
jne 0x140001942
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x140001938
test byte [rcx + 0x1c], r12b
je 0x140001938
cmp byte [rcx + 0x19], 2
jb 0x140001938
lea edx, [rax + 0xc]
lea r8, [0x140040988]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov eax, 0x8007000e
jmp 0x140001c15
mov r9d, 0x64
lea r8, [rsp + 0x50]
lea edx, [r9 + 2]
mov rcx, qword [0x140049868]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
test eax, eax
jne 0x1400019ae
lea r8, [0x140040880]
mov ebx, 0xc8
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140003abc
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x1400019ae
test byte [rcx + 0x1c], r12b
je 0x1400019ae
cmp byte [rcx + 0x19], 3
jb 0x1400019ae
mov edx, 0xd
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, [0x140040988]
mov rcx, qword [rcx + 0x10]
call fcn.1400016d8
lea rdx, [rsp + 0x50]
call fcn.140004480
mov ebx, eax
test eax, eax
jns 0x1400019f5
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x1400019ee
test byte [rcx + 0x1c], r12b
je 0x1400019ee
cmp byte [rcx + 0x19], 2
jb 0x1400019ee
mov edx, 0xe
mov r9d, eax
lea r8, [0x140040988]
mov rcx, qword [rcx + 0x10]
call fcn.1400014d0
mov eax, ebx
jmp 0x140001c15
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x140001f50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x2b0], rax
test rax, rax
jne 0x140001a6f
mov rax, qword [0x140049138]
cmp rax, rsi
je 0x140001a5d
test byte [rax + 0x1c], r12b
je 0x140001a5d
cmp byte [rax + 0x19], 2
jb 0x140001a5d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov edx, 0xf
lea r8, [0x140040988]
mov rcx, qword [0x140049138]
mov rcx, qword [rcx + 0x10]
call fcn.1400014d0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140003cb8
jmp 0x140001c15
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.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_1_0.dll_CreateEventW]
test rax, rax
jne 0x140001aa7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140001ab8
mov qword [rdi + 0x2a0], rax
mov rcx, rdi
call fcn.140002da8
mov ebx, eax
test ebx, ebx
jne 0x140001ad9
lea edx, [rbx + 4]
mov rcx, rdi
call fcn.140002410
or edx, 0xffffffff
mov rcx, qword [rdi + 0x2a0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test ebx, ebx
js 0x140001b27
xor ebx, ebx
mov r14, qword [0x140049c40]
mov rax, qword [0x140049c48]
jmp 0x140001b13
test ebx, ebx
jne 0x140001b18
mov rcx, qword [r14]
test rcx, rcx
je 0x140001b0f
mov ecx, dword [rcx + 0x28]
test ecx, ecx
je 0x140001b0f
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevokeClassObject]
mov ebx, eax
mov rax, qword [0x140049c48]
add r14, 8
cmp r14, rax
jb 0x140001aed
cmp byte [rdi + 0x60], 0
je 0x140001b27
mov ecx, dword [rdi + 0x5c]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
mov rcx, qword [0x140049860]
test rcx, rcx
je 0x140001b79
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x140001b60
test byte [rcx + 0x1c], r12b
je 0x140001b60
cmp byte [rcx + 0x19], 4
jb 0x140001b60
mov edx, 0x10
lea r8, [0x140040988]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov rcx, qword [rdi + 0x2a8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
call fcn.140004c3c
mov rcx, qword [0x140049860]
mov rax, qword [rdi + 0x2b0]
test rax, rax
je 0x140001bcd
mov rcx, rax
mov r9, qword [0x140049138]
cmp r9, rsi
je 0x140001bbd
test byte [r9 + 0x1c], r12b
je 0x140001bbd
cmp byte [r9 + 0x19], 4
jb 0x140001bbd
mov edx, 0x11
lea r8, [0x140040988]
mov rcx, qword [r9 + 0x10]
call fcn.1400016b4
mov rcx, qword [rdi + 0x2b0]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x140049860]
test rcx, rcx
je 0x140001bdf
call fcn.140001e48
and qword [0x140049860], 0
mov rcx, qword [0x140049138]
cmp rcx, rsi
je 0x140001c0c
test byte [rcx + 0x1c], r12b
je 0x140001c0c
cmp byte [rcx + 0x19], 4
jb 0x140001c0c
mov edx, 0x12
lea r8, [0x140040988]
mov rcx, qword [rcx + 0x10]
call fcn.1400016b4
mov eax, ebx
jmp 0x140001c15
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14003d760
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret