Function at 0x14000dc60
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x140051020]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r15, qword [0x1400528d0]
lea rcx, [rsp + 0x50]
call fcn.140004590
nop
mov rsi, r15
mov r14d, 1
mov ebp, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rbx, rax
test r15, r15
jne 0x14000dde1
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140052940], rax
test rax, rax
je 0x14000e0c9
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x14000db10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140052938], rax
mov rcx, qword [0x140052940]
test rax, rax
jne 0x14000dd3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140052940], r15
jmp 0x14000e0c9
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000e0c9
mov rcx, qword [0x140052948]
test rcx, rcx
jne 0x14000dd8c
mov edx, 0x3e8
mov rcx, qword [0x140052938]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140052938]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140052940]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000e0c9
mov edx, r14d
call qword [sym.imp.WTSAPI32.dll_WTSRegisterSessionNotification]
test eax, eax
jne 0x14000ddc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WTSRegisterSessionNotification_failed_with_error__d__n
lea rcx, [rsp + 0x170]
call fcn.14000f110
lea r8, [rsp + 0x170]
mov edx, 4
jmp 0x14000ddce
lea r8, str.WTSRegisterSessionNotification_succeeded__n
xor edx, edx
mov ecx, SafeArrayGetElement
call fcn.140030a90
mov rsi, qword [0x140052948]
xor ebp, ebp
xorps xmm6, xmm6
test rbx, rbx
jne 0x14000ddef
movaps xmm8, xmm6
jmp 0x14000de15
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rbx
xorps xmm8, xmm8
cvtsi2sd xmm8, rax
jns 0x14000de0c
addsd xmm8, qword [0x140041fb8]
divsd xmm8, qword [0x140041fb0]
mov eax, dword [0x1400544f8]
test r14b, al
jne 0x14000de89
or eax, r14d
mov dword [0x1400544f8], eax
mov eax, dword [0x140037cc8]
mov dword [0x140054088], eax
mov eax, dword [0x140037ccc]
mov dword [0x14005408c], eax
mov eax, dword [0x140037cd0]
mov dword [0x140054090], eax
mov eax, dword [0x140037cd4]
mov dword [0x140054094], eax
mov eax, dword [0x140037d08]
mov dword [0x140054098], eax
mov eax, dword [0x140037d0c]
mov dword [0x14005409c], eax
mov eax, dword [0x140037d10]
mov dword [0x1400540a0], eax
mov eax, dword [0x140037d14]
mov dword [0x1400540a4], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r12, rax
lea rbx, [0x140054088]
xor edi, edi
nop dword [rax + rax]
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.USER32.dll_RegisterPowerSettingNotification]
test rax, rax
je 0x14000e0c1
mov ecx, dword [rbx]
mov dword [rsp + 0x150], ecx
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x154], ecx
mov ecx, dword [rbx + 8]
mov dword [rsp + 0x158], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rsp + 0x15c], ecx
mov qword [rsp + 0x160], rax
lea rdx, [rsp + 0x150]
call fcn.14000f2d0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
call fcn.14000f320
add rdi, 0x10
add rbx, 0x10
cmp rdi, 0x20
jb 0x14000dea0
test r12, r12
jne 0x14000df1f
movaps xmm7, xmm6
jmp 0x14000df42
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, r12
xorps xmm7, xmm7
cvtsi2sd xmm7, rax
jns 0x14000df3a
addsd xmm7, qword [0x140041fb8]
divsd xmm7, qword [0x140041fb0]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rdi, rax
mov rbx, qword [0x140052a88]
cmp rbx, qword [0x140052a90]
je 0x14000df83
nop dword [rax + rax]
mov r8d, ebp
mov rdx, rsi
mov rcx, qword [rbx]
call fcn.14000d9e0
test eax, eax
je 0x14000e0c1
add rbx, 8
cmp rbx, qword [0x140052a90]
jne 0x14000df60
test rdi, rdi
je 0x14000dfab
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rdi
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
jns 0x14000dfa3
addsd xmm6, qword [0x140041fb8]
divsd xmm6, qword [0x140041fb0]
lea rdx, str.RegisterForPowerNotifications_timing_breakdown:
lea rcx, [rsp + 0x60]
call fcn.140005730
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rax
lea rdx, str._tcreate_and_waitfor_Worker_thread:
call fcn.140005730
mov rcx, rax
movaps xmm1, xmm8
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___double____ptr64]
mov rcx, rax
lea rdx, [0x140038188]
call fcn.140005730
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rax
lea rdx, str._tRegisterPowerSettingNotification:
call fcn.140005730
mov rcx, rax
movaps xmm1, xmm7
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___double____ptr64]
mov rcx, rax
lea rdx, [0x140038188]
call fcn.140005730
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rax
lea rdx, str._tRegisterCallbacks:
call fcn.140005730
mov rcx, rax
movaps xmm1, xmm6
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___double____ptr64]
mov rcx, rax
lea rdx, [0x140038188]
call fcn.140005730
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x50]
call fcn.140004700
nop
cmp qword [rax + 0x18], 8
jb 0x14000e098
mov rax, qword [rax]
mov r8, rax
xor edx, edx
lea ecx, [rdx + 0x18]
call fcn.140030a90
nop
cmp qword [rsp + 0x168], 8
jb 0x14000e0cc
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x14000e0cc
mov rcx, r15
call fcn.14000e130
xor r14d, r14d
lea rcx, [rsp + 0xe8]
call fcn.140004650
lea rcx, [rsp + 0xe8]
call qword [sym.imp.MSVCP110.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov eax, r14d
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140031010
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret