Function at 0x14003a440
Capabilities:
Log keystrokes via application hook
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rsi, rcx
xor eax, eax
or r13, 0xffffffffffffffff
mov rcx, r13
lea rdi, str.d:log
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.d:log
lea rcx, [0x1400eced0]
call fcn.140011e40
xor edi, edi
mov dword [0x1400eba10], edi
mov rcx, rsi
call fcn.14003e5d0
mov r11, qword [0x1400ecec0]
cmp dword [r11 - 0x10], edi
je 0x14003a53b
lea rdi, [r11 - 0x18]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x14003a4dd
cmp rax, qword [rdi]
jne 0x14003a4dd
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x14003a51b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14003a4f9
call fcn.1400158c0
int3
mov eax, dword [rdi + 8]
mov dword [rbx + 8], eax
mov eax, dword [rdi + 8]
add eax, 1
movsxd rdx, eax
add rdx, rdx
lea r8, [rdi + 0x18]
lea rcx, [rbx + 0x18]
mov r9, rdx
call fcn.140082af0
lea rax, [rbx + 0x18]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0xb8]
call fcn.140015110
xor eax, eax
jmp 0x14003b468
lea r14, [rsi + 0xb60]
cmp qword [r14 + 0x28], rdi
jle 0x14003a551
lea rcx, [r14 + 0x10]
call fcn.140056b38
cmp dword [0x1400ece44], edi
je 0x14003a582
lea rcx, [rsi + 0x800]
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
call fcn.140030b20
mov rcx, rsi
call fcn.14004c690
xor eax, eax
jmp 0x14003b468
mov rcx, rsi
call fcn.14003e6d0
bt dword [rsi + 0x918], 0x1d
jae 0x14003a884
cmp dword [0x1400eceb8], edi
je 0x14003a884
mov ecx, 0x28
call fcn.140056ae4
mov rsi, rax
test rax, rax
je 0x14003a87d
mov qword [rax], rdi
mov qword [rax + 8], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsi + 0x10], edi
mov dword [rsi + 0x14], edi
mov dword [rsi + 0x18], edi
mov dword [rsi + 0x1c], edi
mov dword [rsi + 0x20], edi
mov dword [rsi + 0x24], edi
mov rcx, rsi
call fcn.140022870
mov r12d, 1
test eax, eax
je 0x14003a86b
mov rcx, rsi
call fcn.140022990
test eax, eax
je 0x14003a86b
cmp dword [rsi + 0x14], edi
je 0x14003a86b
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0x98], rdi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWARERealtekSpkProtection
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003a654
mov rbx, qword [rsp + 0x98]
jmp 0x14003a6b1
mov qword [rsp + 0xa0], rdi
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWARERealtekSpkProtection
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003a856
mov rbx, qword [rsp + 0xa0]
mov eax, dword [rsi + 0x24]
mov dword [rsp + 0x140], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TS_MSB
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rsi + 0x20]
mov dword [rsp + 0x148], r11d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TS_LSB
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rsi + 0x14]
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.R0_L_MSB
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rsi + 0x10]
mov dword [rsp + 0x80], r11d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.R0_L_LSB
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rsi + 0x1c]
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.R0_R_MSB
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rsi + 0x18]
mov dword [rsp + 0x88], r11d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.R0_R_LSB
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.R0_FROM_WMI
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14003a846
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
test rbx, rbx
je 0x14003a86b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003a86b
mov edx, 1
mov rcx, rsi
call fcn.14003b530
nop
xor eax, eax
jmp 0x14003b468
mov edx, r12d
mov rcx, rsi
call fcn.14003b530
xor eax, eax
jmp 0x14003b468
xor eax, eax
jmp 0x14003b468
mov r12d, 1
test byte [rsi + 0xa5c], r12b
je 0x14003aa72
mov r14d, edi
lea rbp, [0x1400bcd6c]
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x900]
call fcn.140052dd0
nop
call fcn.1400578a4
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
je 0x14003aa60
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
test rbp, 0xffffffffffff0000
jne 0x14003a909
movzx ebp, bp
mov ecx, ebp
call fcn.140057890
test rax, rax
je 0x14003a91b
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140011810
mov rbx, qword [rsp + 0x58]
jmp 0x14003a91b
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.14004d3c0
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
movsxd rbp, dword [rcx - 0x10]
mov edx, r12d
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, ebp
or eax, edx
jge 0x14003a944
mov edx, ebp
lea rcx, [rsp + 0x50]
call fcn.140011a30
mov rcx, qword [rsp + 0x50]
lea eax, [rbp + 1]
movsxd rdx, eax
call fcn.140083250
test ebp, ebp
js 0x14003aa55
mov rax, qword [rsp + 0x50]
cmp ebp, dword [rax - 0xc]
jg 0x14003aa55
mov dword [rax - 0x10], ebp
mov rax, qword [rsp + 0x50]
mov word [rax + rbp*2], 0
test rbx, rbx
je 0x14003a99d
mov rcx, qword [rsp + 0x50]
cmp dword [rcx - 0x10], 0
jl 0x14003a99d
mov rdx, rbx
call fcn.1400823b0
test rax, rax
je 0x14003a99d
sub rax, qword [rsp + 0x50]
sar rax, 1
cmp eax, 0xffffffff
jne 0x14003aa05
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.14003e6d0
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14003a9ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14003a9ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add r14d, 1
cmp r14d, 0xa
jge 0x14003aa4c
lea rbp, [0x1400bcd6c]
jmp 0x14003a8a1
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14003aa22
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x14003aa6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r14, [rsi + 0xb60]
jmp 0x14003aa72
lea r14, [rsi + 0xb60]
jmp 0x14003aa72
mov ecx, 0x80070057
call fcn.1400120e0
nop
mov ecx, 0x80004005
call fcn.1400120e0
nop
lea r14, [rsi + 0xb60]
mov eax, dword [rsi + 0xa30]
shr eax, 9
and eax, 1
mov dword [rsi + 0x10b8], eax
cmp dword [0x1400ece38], 0
je 0x14003ab14
mov rcx, rsi
call fcn.14004c3e0
cmp dword [0x1400ece18], 0
jne 0x14003ab05
cmp dword [0x1400ece2c], 0
jne 0x14003ab05
cmp dword [0x1400ecde8], 0
jne 0x14003ab05
cmp dword [0x1400ece54], 0
jne 0x14003ab05
cmp dword [0x1400ecdf0], 0
jne 0x14003ab05
cmp dword [0x1400ecdf8], 0
jne 0x14003ab05
cmp dword [0x1400ecdfc], 0
jne 0x14003ab05
cmp dword [0x1400ece04], 0
jne 0x14003ab05
cmp dword [0x1400ece0c], 0
jne 0x14003ab05
cmp dword [0x1400ece14], 0
jne 0x14003ab05
cmp dword [0x1400ece20], 0
jne 0x14003ab05
cmp dword [0x1400ecddc], 0
je 0x14003ab0d
mov rcx, rsi
call fcn.14003df10
xor eax, eax
jmp 0x14003b468
cmp dword [0x1400ecde8], 0
jne 0x14003b45e
cmp dword [0x1400ece54], 0
jne 0x14003b45e
cmp dword [0x1400ecdf0], 0
jne 0x14003b45e
cmp dword [0x1400ecdf8], 0
jne 0x14003b45e
cmp dword [0x1400ecdfc], 0
jne 0x14003b45e
cmp dword [0x1400ece04], 0
jne 0x14003b45e
cmp dword [0x1400ece0c], 0
jne 0x14003b45e
cmp dword [0x1400ece14], 0
jne 0x14003b45e
cmp dword [0x1400ece20], 0
jne 0x14003b45e
cmp dword [0x1400ecddc], 0
jne 0x14003b45e
cmp dword [0x1400ece18], 0
jne 0x14003b45e
cmp dword [0x1400ece2c], 0
jne 0x14003b45e
cmp dword [0x1400ece34], 0
je 0x14003abdf
lea rcx, [rsi + 0x900]
lea rdx, [rsp + 0xe0]
call fcn.140052dd0
mov edx, r12d
mov rcx, rax
call fcn.140029f30
xor eax, eax
jmp 0x14003b468
mov dword [rsi + 0x608], 0x67
mov dword [rsi + 0x60c], 0x66
cmp dword [0x1400ece7c], 0
je 0x14003ac86
add rsi, 0x800
je 0x14003ac7f
call fcn.140051db0
lea rcx, [rsi + 0xb8]
call fcn.140030850
mov ebp, dword [rsi + 0x60]
test ebp, ebp
je 0x14003ac6e
cmp edi, dword [rsi + 0x60]
jae 0x14003ac5f
mov edx, edi
lea rcx, [rsi + 0x48]
call fcn.140056e3c
test rax, rax
je 0x14003ac68
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x14003ac5f
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140035450
mov rcx, rax
call fcn.140051830
mov rcx, rbx
call fcn.1400513c0
add edi, 1
cmp edi, ebp
jae 0x14003ac6e
jmp 0x14003ac21
call fcn.140057a80
int3
mov rax, qword [rsi + 0xb8]
lea rcx, [rsi + 0xb8]
call qword [rax + 0x28]
xor eax, eax
jmp 0x14003b468
cmp dword [0x1400ecea0], 0
je 0x14003ac9c
call fcn.1400162b0
test eax, eax
je 0x14003b468
cmp dword [0x1400eceb0], 0
je 0x14003acbb
cmp dword [0x1400ebaec], 0
je 0x14003acbb
call fcn.1400162b0
test eax, eax
je 0x14003b468
cmp dword [0x1400ecdc8], 0
je 0x14003acf5
lea rbx, str.8__v_
mov ebp, 0x26
mov rdx, qword [rbx]
test rdx, rdx
je 0x14003ace4
lea rcx, [rsi + 0xb70]
call fcn.140056d5c
add rbx, 8
sub rbp, 1
jne 0x14003acd0
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ecdc4], 0
je 0x14003ad06
mov rcx, rsi
call fcn.1400438f0
cmp dword [0x1400ece60], 0
je 0x14003ad3a
mov rcx, rsi
call fcn.140043990
bt dword [rsi + 0x9b4], 0x1d
jae 0x14003ad29
mov rcx, rsi
call fcn.140043d70
test byte [rsi + 0xa1c], 0x80
je 0x14003ad3a
mov rcx, rsi
call fcn.140049970
cmp dword [0x1400ece68], 0
je 0x14003ad69
mov dword [rsi + 0x1084], r12d
mov rdx, qword [0x1400e46f0]
test rdx, rdx
je 0x14003ad62
lea rcx, [rsi + 0xb70]
call fcn.140056d5c
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ece64], 0
je 0x14003ad79
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ecdcc], 0
je 0x14003ad94
xor edx, edx
mov rcx, rsi
call fcn.140043e00
mov rcx, rsi
call fcn.140046c80
cmp dword [0x1400ecdd0], 0
je 0x14003adb0
mov edx, r12d
mov rcx, rsi
call fcn.140043e00
mov rcx, rsi
call fcn.140046d30
cmp dword [0x1400ecdd4], 0
je 0x14003adcb
xor edx, edx
mov rcx, rsi
call fcn.140043e00
mov rcx, rsi
call fcn.140046bf0
lea rcx, [0x1400ecc80]
call fcn.140039060
test eax, eax
jne 0x14003adeb
cmp dword [0x1400ecde0], eax
jne 0x14003adeb
cmp dword [0x1400eceb4], eax
je 0x14003adf3
mov rcx, rsi
call fcn.14003e0f0
cmp dword [0x1400ecdd8], 0
je 0x14003ae67
mov dword [rsi + 0xb68], r12d
lea rbx, str.xb_v_
mov ebp, SafeArrayGetDim
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x14003ae24
lea rcx, [rsi + 0xb70]
call fcn.140056d5c
add rbx, 8
sub rbp, 1
jne 0x14003ae10
mov dword [rsi + 0x1084], r12d
lea rcx, [rsi + 0x900]
lea rdx, [rsp + 0xd8]
call fcn.140052dd0
mov rdx, rax
lea rcx, [rsi + 0xbc8]
call fcn.140020920
mov dword [rsi + 0xcb0], r12d
mov rcx, rsi
call fcn.140048fa0
cmp dword [0x1400ece58], 0
je 0x14003aea9
lea rcx, [rsi + 0xf90]
call fcn.14004f360
mov rax, qword [rsi + 0xfc0]
test rax, rax
je 0x14003ae97
xor r8d, r8d
mov rdx, rsi
lea rcx, [0x14004a150]
call rax
mov rcx, rsi
call fcn.14004a170
xor edx, edx
mov rcx, rsi
call fcn.140048d90
cmp dword [0x1400ece5c], 0
je 0x14003b0ef
mov edx, r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
movzx r11d, word [rsi + 0x902]
cmp r11d, 0x1025
je 0x14003aefb
cmp r11d, 0x17aa
jne 0x14003af02
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
mov dword [rsi + 0x1060], r12d
jmp 0x14003af02
mov dword [rsi + 0x1064], r12d
cmp dword [rsi + 0xae0], 0
jne 0x14003b047
cmp dword [rsi + 0xae4], 0
jne 0x14003b047
cmp dword [rsi + 0xae8], 0
jne 0x14003b047
cmp dword [rsi + 0xaec], 0
jne 0x14003b047
mov ecx, dword [rsi + 0xaa8]
test ecx, ecx
je 0x14003af63
movzx eax, byte [rsi + 0xaa9]
mov dword [0x1400eca30], eax
movzx eax, cl
mov dword [0x1400eca34], eax
mov rcx, rsi
call fcn.140049580
jmp 0x14003b0c7
bt dword [rsi + 0xa2c], 0xc
jae 0x14003af86
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 2
jmp 0x14003b0c7
movzx eax, word [rsi + 0x900]
shl r11d, 0x10
or eax, r11d
sub eax, 0x17aa215e
je 0x14003b00b
sub eax, 0x5a
je 0x14003afdb
sub eax, 0x17bd
jne 0x14003b0c7
movzx eax, word [rsi + 0x904]
cmp ax, 0x4010
je 0x14003afc2
cmp ax, 0x4012
jne 0x14003b0c7
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
jmp 0x14003b0c7
movzx eax, word [rsi + 0x904]
cmp ax, 0x21bd
je 0x14003aff2
cmp ax, 0x21bf
jne 0x14003b0c7
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
jmp 0x14003b0c7
movzx eax, word [rsi + 0x904]
cmp ax, 0x21a3
je 0x14003b02e
cmp ax, 0x21a5
je 0x14003b02e
cmp ax, 0x21ba
je 0x14003b02e
cmp ax, 0x21bc
jne 0x14003b0c7
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
jmp 0x14003b0c7
mov dword [0x1400eca58], edi
movzx eax, byte [rsi + 0xae1]
mov dword [0x1400eca38], eax
movzx eax, byte [rsi + 0xae0]
mov dword [0x1400eca48], eax
movzx eax, byte [rsi + 0xae5]
mov dword [0x1400eca3c], eax
movzx eax, byte [rsi + 0xae4]
mov dword [0x1400eca4c], eax
movzx ecx, byte [rsi + 0xae9]
mov dword [0x1400eca40], ecx
movzx eax, byte [rsi + 0xae8]
mov dword [0x1400eca50], eax
movzx edx, byte [rsi + 0xaed]
mov dword [0x1400eca44], edx
movzx eax, byte [rsi + 0xaec]
mov dword [0x1400eca54], eax
test ecx, ecx
jne 0x14003b0c7
mov eax, edi
test edx, edx
cmovne eax, r12d
mov dword [0x1400eca58], eax
cmp qword [0x1400ebaf0], 0
jne 0x14003b0ef
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400490a0]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1400ebaf0], rax
bt dword [rsi + 0x9b4], 0xf
jae 0x14003b1e7
mov dword [rsp + 0x138], edi
mov qword [rsp + 0xa8], rdi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x1400bcd70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003b1cd
mov rdi, qword [rsp + 0xa8]
mov qword [rsp + 0xe8], rdi
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x138]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x138], 2
jne 0x14003b1cd
mov edx, r12d
mov rcx, rsi
call fcn.140049ba0
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Logoff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov rcx, qword [rsi + 0x40]
call sub.WTSAPI32.dll_WTSRegisterSessionNotification
nop
test rdi, rdi
je 0x14003b1e7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140041eb0
cmp dword [0x1400ecdc8], 0
je 0x14003b200
mov rcx, rsi
call fcn.14003d950
lea rcx, [0x1400ecc80]
call fcn.140039060
test eax, eax
jne 0x14003b218
cmp dword [0x1400ecde0], eax
je 0x14003b220
mov rcx, rsi
call fcn.14003de50
cmp dword [0x1400ece70], 0
je 0x14003b238
mov dword [rsi + 0x1084], r12d
mov rcx, rsi
call fcn.14004a290
cmp dword [0x1400ece74], 0
jne 0x14003b253
cmp dword [0x1400ece78], 0
jne 0x14003b253
cmp dword [0x1400ece4c], 0
je 0x14003b25a
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ecea4], 0
je 0x14003b27d
mov qword [rsi + 0xbb8], rsi
lea rdx, [rsi + 0xbb0]
lea rcx, [rsi + 0x800]
call fcn.140030d60
cmp dword [0x1400ece80], 0
je 0x14003b2ac
lea rcx, [rsi + 0xb70]
lea rdx, [0x1400b63f8]
call fcn.140056d5c
mov dword [rsi + 0x1084], r12d
lea rcx, [rsi + 0x800]
call fcn.14004fa20
mov rcx, rsi
call fcn.14003d500
cmp dword [0x1400ece94], 0
je 0x14003b2c9
lea rcx, [rsi + 0x800]
call fcn.140020310
cmp dword [rsi + 0xcd8], 0
je 0x14003b2da
mov rcx, rsi
call fcn.14003d010
cmp dword [0x1400ece88], 0
je 0x14003b330
test byte [rsi + 0x9a8], 8
je 0x14003b330
mov rcx, rsi
call fcn.14003d290
lea rdi, [rsi + 0x10c0]
cmp qword [rdi], 0
jne 0x14003b330
mov qword [rsp + 0x20], rdi
lea r9, [0x1400bdac0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1400bdae0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003b330
mov edx, dword [rsi + 0x40]
call fcn.1400391b0
cmp dword [0x1400ecea8], 0
je 0x14003b38d
lea rcx, [rsi + 0x800]
call fcn.140031f70
test rax, rax
je 0x14003b355
mov rdx, rax
mov rcx, rsi
call fcn.14004ad60
mov dword [rsi + 0xb68], r12d
lea rdi, [0x1400e4690]
mov ebx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rdx, qword [rdi]
test rdx, rdx
je 0x14003b37c
lea rcx, [rsi + 0xb70]
call fcn.140056d5c
add rdi, 8
sub rbx, 1
jne 0x14003b368
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ece28], 0
je 0x14003b3c9
lea rcx, [rsi + 0xb70]
lea rdx, [0x1400b6008]
call fcn.140056d5c
mov dword [rsi + 0x1084], r12d
lea rcx, [rsi + 0x800]
call fcn.140031bb0
test rax, rax
je 0x14003b3c9
mov rcx, rax
call fcn.14004f7d0
cmp dword [0x1400ece98], 0
je 0x14003b3ec
lea rcx, [rsi + 0xb70]
lea rdx, [0x1400b6008]
call fcn.140056d5c
mov dword [rsi + 0x1084], r12d
cmp dword [rsi + 0x1084], 0
je 0x14003b40b
mov qword [rsi + 0xba8], rsi
lea rcx, [rsi + 0x800]
mov rdx, r14
call fcn.140030d60
mov rcx, rsi
call fcn.14003ce70
cmp dword [0x1400ece40], 0
je 0x14003b441
cmp qword [0x1400ebaf8], 0
jne 0x14003b441
xor r8d, r8d
lea rdx, [0x1400b5198]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_RegisterPowerSettingNotification]
mov qword [0x1400ebaf8], rax
mov eax, dword [0x1400ece48]
test eax, eax
je 0x14003b459
mov dword [0x1400eba10], eax
mov rcx, rsi
call fcn.14004ca10
mov eax, r12d
jmp 0x14003b468
mov rcx, rsi
call fcn.14003df10
xor eax, eax
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret