Function at 0x14000d1f0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x140055020]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r13, qword [0x1400575f0]
lea rcx, [rbp - 0x80]
call fcn.140003a40
nop
mov rsi, r13
mov r12d, 1
lea r15, vtable.WinTickCount.0
mov qword [rsp + 0x60], r15
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x68], rax
test r13, r13
jne 0x14000d394
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140057638], rax
test rax, rax
jne 0x14000d2a6
jmp 0x14000d6da
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x14000d0a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140057640], rax
mov rcx, qword [0x140057638]
test rax, rax
jne 0x14000d2e9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140057638], r14
jmp 0x14000d6da
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000d2fd
jmp 0x14000d6da
mov rcx, qword [0x140057630]
test rcx, rcx
jne 0x14000d33b
mov edx, 0x3e8
mov rcx, qword [0x140057640]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140057640]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140057638]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000d6da
mov edx, r12d
call qword [sym.imp.WTSAPI32.dll_WTSRegisterSessionNotification]
test eax, eax
jne 0x14000d372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WTSRegisterSessionNotification_failed_with_error__d__n
lea rcx, [rbp + 0xc0]
call fcn.14000e820
lea r8, [rbp + 0xc0]
mov edx, 4
jmp 0x14000d37b
lea r8, str.WTSRegisterSessionNotification_succeeded__n
xor edx, edx
mov ecx, SafeArrayGetElement
call fcn.140031a70
mov rsi, qword [0x140057630]
mov r12d, r14d
mov rax, qword [rsp + 0x68]
xorpd xmm6, xmm6
test rax, rax
jne 0x14000d3a4
movapd xmm8, xmm6
jmp 0x14000d3d2
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
pxor xmm8, xmm8
cvtsi2sd xmm8, rax
test rax, rax
jns 0x14000d3c9
addsd xmm8, qword [0x140043df8]
divsd xmm8, qword [0x140043e00]
mov eax, dword [0x1400589d0]
test al, 1
jne 0x14000d445
or eax, 1
mov dword [0x1400589d0], eax
mov eax, dword [0x140039ca0]
mov dword [0x140058320], eax
mov eax, dword [0x140039ca4]
mov dword [0x140058324], eax
mov eax, dword [0x140039ca8]
mov dword [0x140058328], eax
mov eax, dword [0x140039cac]
mov dword [0x14005832c], eax
mov eax, dword [0x140039cb0]
mov dword [0x140058330], eax
mov eax, dword [0x140039cb4]
mov dword [0x140058334], eax
mov eax, dword [0x140039cb8]
mov dword [0x140058338], eax
mov eax, dword [0x140039cbc]
mov dword [0x14005833c], eax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x38], rax
lea rbx, [0x140058320]
mov rdi, r14
nop dword [rax]
mov r8d, r12d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.USER32.dll_RegisterPowerSettingNotification]
mov r11, rax
test rax, rax
je 0x14000d6d1
mov eax, dword [rbx]
mov dword [rbp + 0x90], eax
mov eax, dword [rbx + 4]
mov dword [rbp + 0x94], eax
mov eax, dword [rbx + 8]
mov dword [rbp + 0x98], eax
mov eax, dword [rbx + 0xc]
mov dword [rbp + 0x9c], eax
mov qword [rbp + 0xa0], r11
lea rcx, [rbp + 0x90]
call fcn.14000ee50
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.14000e850
add rdi, 0x10
add rbx, 0x10
cmp rdi, 0x20
jb 0x14000d470
cmp qword [rsp + 0x38], r14
jne 0x14000d4eb
movapd xmm7, xmm6
jmp 0x14000d516
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
pxor xmm7, xmm7
cvtsi2sd xmm7, rax
test rax, rax
jns 0x14000d50e
addsd xmm7, qword [0x140043df8]
divsd xmm7, qword [0x140043e00]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x50], rax
mov rbx, qword [0x140057768]
cmp rbx, qword [0x140057770]
je 0x14000d574
mov r8d, r12d
mov rdx, rsi
mov rcx, qword [rbx]
call fcn.14000cf50
test eax, eax
je 0x14000d566
add rbx, 8
cmp rbx, qword [0x140057770]
jne 0x14000d540
mov rax, qword [rsp + 0x50]
jmp 0x14000d574
mov rcx, r13
call fcn.14000d730
nop
jmp 0x14000d6da
test rax, rax
je 0x14000d5a4
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
pxor xmm6, xmm6
cvtsi2sd xmm6, rax
test rax, rax
jns 0x14000d59c
addsd xmm6, qword [0x140043df8]
divsd xmm6, qword [0x140043e00]
lea rdx, str.RegisterForPowerNotifications_timing_breakdown:
lea rcx, [rbp - 0x70]
call fcn.140004e80
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.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.MSVCP100.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.140004e80
mov rcx, rax
movapd xmm1, xmm8
call qword [sym.imp.MSVCP100.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, [0x140039f48]
call fcn.140004e80
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.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.MSVCP100.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.140004e80
mov rcx, rax
movapd xmm1, xmm7
call qword [sym.imp.MSVCP100.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, [0x140039f48]
call fcn.140004e80
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.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.MSVCP100.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.140004e80
mov rcx, rax
movapd xmm1, xmm6
call qword [sym.imp.MSVCP100.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, [0x140039f48]
call fcn.140004e80
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP100.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.MSVCP100.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, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140003b90
nop
cmp qword [rax + 0x18], 8
jb 0x14000d691
mov rax, qword [rax]
mov r8, rax
xor edx, edx
lea ecx, [rdx + 0x18]
call fcn.140031a70
nop
cmp qword [rbp + 0xa8], 8
jb 0x14000d6b7
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
nop
lea rcx, [rbp + 0x18]
call fcn.140003af0
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP100.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov eax, 1
jmp 0x14000d6ef
mov rcx, r13
call fcn.14000d730
nop
lea rcx, [rbp + 0x18]
call fcn.140003af0
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP100.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140032000
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret