Function at 0x14003a420
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.140011e30
xor edi, edi
mov dword [0x1400eba10], edi
mov rcx, rsi
call fcn.14003e5b0
mov r11, qword [0x1400ecec0]
cmp dword [r11 - 0x10], edi
je 0x14003a51b
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 0x14003a4bd
cmp rax, qword [rdi]
jne 0x14003a4bd
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x14003a4fb
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14003a4d9
call fcn.1400158b0
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.140082b00
lea rax, [rbx + 0x18]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0xb8]
call fcn.140015100
xor eax, eax
jmp 0x14003b448
lea r14, [rsi + 0xb60]
cmp qword [r14 + 0x28], rdi
jle 0x14003a531
lea rcx, [r14 + 0x10]
call fcn.140056b48
cmp dword [0x1400ece44], edi
je 0x14003a562
lea rcx, [rsi + 0x800]
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
call fcn.140030ac0
mov rcx, rsi
call fcn.14004c670
xor eax, eax
jmp 0x14003b448
mov rcx, rsi
call fcn.14003e6b0
bt dword [rsi + 0x918], 0x1d
jae 0x14003a864
cmp dword [0x1400eceb8], edi
je 0x14003a864
mov ecx, 0x28
call fcn.140056af4
mov rsi, rax
test rax, rax
je 0x14003a85d
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.140022800
mov r12d, 1
test eax, eax
je 0x14003a84b
mov rcx, rsi
call fcn.140022920
test eax, eax
je 0x14003a84b
cmp dword [rsi + 0x14], edi
je 0x14003a84b
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 0x14003a634
mov rbx, qword [rsp + 0x98]
jmp 0x14003a691
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 0x14003a836
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 0x14003a826
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
test rbx, rbx
je 0x14003a84b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003a84b
mov edx, 1
mov rcx, rsi
call fcn.14003b510
nop
xor eax, eax
jmp 0x14003b448
mov edx, r12d
mov rcx, rsi
call fcn.14003b510
xor eax, eax
jmp 0x14003b448
xor eax, eax
jmp 0x14003b448
mov r12d, 1
test byte [rsi + 0xa5c], r12b
je 0x14003aa52
mov r14d, edi
lea rbp, [0x1400bcd6c]
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x900]
call fcn.140052db0
nop
call fcn.1400578b4
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
je 0x14003aa40
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 0x14003a8e9
movzx ebp, bp
mov ecx, ebp
call fcn.1400578a0
test rax, rax
je 0x14003a8fb
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140011800
mov rbx, qword [rsp + 0x58]
jmp 0x14003a8fb
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.14004d3a0
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 0x14003a924
mov edx, ebp
lea rcx, [rsp + 0x50]
call fcn.140011a20
mov rcx, qword [rsp + 0x50]
lea eax, [rbp + 1]
movsxd rdx, eax
call fcn.140083260
test ebp, ebp
js 0x14003aa35
mov rax, qword [rsp + 0x50]
cmp ebp, dword [rax - 0xc]
jg 0x14003aa35
mov dword [rax - 0x10], ebp
mov rax, qword [rsp + 0x50]
mov word [rax + rbp*2], 0
test rbx, rbx
je 0x14003a97d
mov rcx, qword [rsp + 0x50]
cmp dword [rcx - 0x10], 0
jl 0x14003a97d
mov rdx, rbx
call fcn.1400823c0
test rax, rax
je 0x14003a97d
sub rax, qword [rsp + 0x50]
sar rax, 1
cmp eax, 0xffffffff
jne 0x14003a9e5
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.14003e6b0
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14003a9ae
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 0x14003a9cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add r14d, 1
cmp r14d, 0xa
jge 0x14003aa2c
lea rbp, [0x1400bcd6c]
jmp 0x14003a881
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14003aa02
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 0x14003aa4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r14, [rsi + 0xb60]
jmp 0x14003aa52
lea r14, [rsi + 0xb60]
jmp 0x14003aa52
mov ecx, 0x80070057
call fcn.1400120d0
nop
mov ecx, 0x80004005
call fcn.1400120d0
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 0x14003aaf4
mov rcx, rsi
call fcn.14004c3c0
cmp dword [0x1400ece18], 0
jne 0x14003aae5
cmp dword [0x1400ece2c], 0
jne 0x14003aae5
cmp dword [0x1400ecde8], 0
jne 0x14003aae5
cmp dword [0x1400ece54], 0
jne 0x14003aae5
cmp dword [0x1400ecdf0], 0
jne 0x14003aae5
cmp dword [0x1400ecdf8], 0
jne 0x14003aae5
cmp dword [0x1400ecdfc], 0
jne 0x14003aae5
cmp dword [0x1400ece04], 0
jne 0x14003aae5
cmp dword [0x1400ece0c], 0
jne 0x14003aae5
cmp dword [0x1400ece14], 0
jne 0x14003aae5
cmp dword [0x1400ece20], 0
jne 0x14003aae5
cmp dword [0x1400ecddc], 0
je 0x14003aaed
mov rcx, rsi
call fcn.14003def0
xor eax, eax
jmp 0x14003b448
cmp dword [0x1400ecde8], 0
jne 0x14003b43e
cmp dword [0x1400ece54], 0
jne 0x14003b43e
cmp dword [0x1400ecdf0], 0
jne 0x14003b43e
cmp dword [0x1400ecdf8], 0
jne 0x14003b43e
cmp dword [0x1400ecdfc], 0
jne 0x14003b43e
cmp dword [0x1400ece04], 0
jne 0x14003b43e
cmp dword [0x1400ece0c], 0
jne 0x14003b43e
cmp dword [0x1400ece14], 0
jne 0x14003b43e
cmp dword [0x1400ece20], 0
jne 0x14003b43e
cmp dword [0x1400ecddc], 0
jne 0x14003b43e
cmp dword [0x1400ece18], 0
jne 0x14003b43e
cmp dword [0x1400ece2c], 0
jne 0x14003b43e
cmp dword [0x1400ece34], 0
je 0x14003abbf
lea rcx, [rsi + 0x900]
lea rdx, [rsp + 0xe0]
call fcn.140052db0
mov edx, r12d
mov rcx, rax
call fcn.140029ec0
xor eax, eax
jmp 0x14003b448
mov dword [rsi + 0x608], 0x67
mov dword [rsi + 0x60c], 0x66
cmp dword [0x1400ece7c], 0
je 0x14003ac66
add rsi, 0x800
je 0x14003ac5f
call fcn.140051d90
lea rcx, [rsi + 0xb8]
call fcn.1400307e0
mov ebp, dword [rsi + 0x60]
test ebp, ebp
je 0x14003ac4e
cmp edi, dword [rsi + 0x60]
jae 0x14003ac3f
mov edx, edi
lea rcx, [rsi + 0x48]
call fcn.140056e4c
test rax, rax
je 0x14003ac48
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x14003ac3f
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.1400353d0
mov rcx, rax
call fcn.140051810
mov rcx, rbx
call fcn.1400513a0
add edi, 1
cmp edi, ebp
jae 0x14003ac4e
jmp 0x14003ac01
call fcn.140057a98
int3
mov rax, qword [rsi + 0xb8]
lea rcx, [rsi + 0xb8]
call qword [rax + 0x28]
xor eax, eax
jmp 0x14003b448
cmp dword [0x1400ecea0], 0
je 0x14003ac7c
call fcn.1400162a0
test eax, eax
je 0x14003b448
cmp dword [0x1400eceb0], 0
je 0x14003ac9b
cmp dword [0x1400ebaec], 0
je 0x14003ac9b
call fcn.1400162a0
test eax, eax
je 0x14003b448
cmp dword [0x1400ecdc8], 0
je 0x14003acd5
lea rbx, str.8__v_
mov ebp, 0x26
mov rdx, qword [rbx]
test rdx, rdx
je 0x14003acc4
lea rcx, [rsi + 0xb70]
call fcn.140056d6c
add rbx, 8
sub rbp, 1
jne 0x14003acb0
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ecdc4], 0
je 0x14003ace6
mov rcx, rsi
call fcn.1400438d0
cmp dword [0x1400ece60], 0
je 0x14003ad1a
mov rcx, rsi
call fcn.140043970
bt dword [rsi + 0x9b4], 0x1d
jae 0x14003ad09
mov rcx, rsi
call fcn.140043d50
test byte [rsi + 0xa1c], 0x80
je 0x14003ad1a
mov rcx, rsi
call fcn.140049950
cmp dword [0x1400ece68], 0
je 0x14003ad49
mov dword [rsi + 0x1084], r12d
mov rdx, qword [0x1400e46f0]
test rdx, rdx
je 0x14003ad42
lea rcx, [rsi + 0xb70]
call fcn.140056d6c
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ece64], 0
je 0x14003ad59
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ecdcc], 0
je 0x14003ad74
xor edx, edx
mov rcx, rsi
call fcn.140043de0
mov rcx, rsi
call fcn.140046c60
cmp dword [0x1400ecdd0], 0
je 0x14003ad90
mov edx, r12d
mov rcx, rsi
call fcn.140043de0
mov rcx, rsi
call fcn.140046d10
cmp dword [0x1400ecdd4], 0
je 0x14003adab
xor edx, edx
mov rcx, rsi
call fcn.140043de0
mov rcx, rsi
call fcn.140046bd0
lea rcx, [0x1400ecc80]
call fcn.140039040
test eax, eax
jne 0x14003adcb
cmp dword [0x1400ecde0], eax
jne 0x14003adcb
cmp dword [0x1400eceb4], eax
je 0x14003add3
mov rcx, rsi
call fcn.14003e0d0
cmp dword [0x1400ecdd8], 0
je 0x14003ae47
mov dword [rsi + 0xb68], r12d
lea rbx, str.xb_v_
mov ebp, SafeArrayGetDim
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x14003ae04
lea rcx, [rsi + 0xb70]
call fcn.140056d6c
add rbx, 8
sub rbp, 1
jne 0x14003adf0
mov dword [rsi + 0x1084], r12d
lea rcx, [rsi + 0x900]
lea rdx, [rsp + 0xd8]
call fcn.140052db0
mov rdx, rax
lea rcx, [rsi + 0xbc8]
call fcn.1400208b0
mov dword [rsi + 0xcb0], r12d
mov rcx, rsi
call fcn.140048f80
cmp dword [0x1400ece58], 0
je 0x14003ae89
lea rcx, [rsi + 0xf90]
call fcn.14004f340
mov rax, qword [rsi + 0xfc0]
test rax, rax
je 0x14003ae77
xor r8d, r8d
mov rdx, rsi
lea rcx, [0x14004a130]
call rax
mov rcx, rsi
call fcn.14004a150
xor edx, edx
mov rcx, rsi
call fcn.140048d70
cmp dword [0x1400ece5c], 0
je 0x14003b0cf
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 0x14003aedb
cmp r11d, 0x17aa
jne 0x14003aee2
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
mov dword [rsi + 0x1060], r12d
jmp 0x14003aee2
mov dword [rsi + 0x1064], r12d
cmp dword [rsi + 0xae0], 0
jne 0x14003b027
cmp dword [rsi + 0xae4], 0
jne 0x14003b027
cmp dword [rsi + 0xae8], 0
jne 0x14003b027
cmp dword [rsi + 0xaec], 0
jne 0x14003b027
mov ecx, dword [rsi + 0xaa8]
test ecx, ecx
je 0x14003af43
movzx eax, byte [rsi + 0xaa9]
mov dword [0x1400eca30], eax
movzx eax, cl
mov dword [0x1400eca34], eax
mov rcx, rsi
call fcn.140049560
jmp 0x14003b0a7
bt dword [rsi + 0xa2c], 0xc
jae 0x14003af66
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 2
jmp 0x14003b0a7
movzx eax, word [rsi + 0x900]
shl r11d, 0x10
or eax, r11d
sub eax, 0x17aa215e
je 0x14003afeb
sub eax, 0x5a
je 0x14003afbb
sub eax, 0x17bd
jne 0x14003b0a7
movzx eax, word [rsi + 0x904]
cmp ax, 0x4010
je 0x14003afa2
cmp ax, 0x4012
jne 0x14003b0a7
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
jmp 0x14003b0a7
movzx eax, word [rsi + 0x904]
cmp ax, 0x21bd
je 0x14003afd2
cmp ax, 0x21bf
jne 0x14003b0a7
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
jmp 0x14003b0a7
movzx eax, word [rsi + 0x904]
cmp ax, 0x21a3
je 0x14003b00e
cmp ax, 0x21a5
je 0x14003b00e
cmp ax, 0x21ba
je 0x14003b00e
cmp ax, 0x21bc
jne 0x14003b0a7
mov dword [0x1400ec228], 0xff
mov dword [0x1400ec22c], 0x71
jmp 0x14003b0a7
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 0x14003b0a7
mov eax, edi
test edx, edx
cmovne eax, r12d
mov dword [0x1400eca58], eax
cmp qword [0x1400ebaf0], 0
jne 0x14003b0cf
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140049080]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1400ebaf0], rax
bt dword [rsi + 0x9b4], 0xf
jae 0x14003b1c7
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 0x14003b1ad
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 0x14003b1ad
mov edx, r12d
mov rcx, rsi
call fcn.140049b80
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 0x14003b1c7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140041e90
cmp dword [0x1400ecdc8], 0
je 0x14003b1e0
mov rcx, rsi
call fcn.14003d930
lea rcx, [0x1400ecc80]
call fcn.140039040
test eax, eax
jne 0x14003b1f8
cmp dword [0x1400ecde0], eax
je 0x14003b200
mov rcx, rsi
call fcn.14003de30
cmp dword [0x1400ece70], 0
je 0x14003b218
mov dword [rsi + 0x1084], r12d
mov rcx, rsi
call fcn.14004a270
cmp dword [0x1400ece74], 0
jne 0x14003b233
cmp dword [0x1400ece78], 0
jne 0x14003b233
cmp dword [0x1400ece4c], 0
je 0x14003b23a
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ecea4], 0
je 0x14003b25d
mov qword [rsi + 0xbb8], rsi
lea rdx, [rsi + 0xbb0]
lea rcx, [rsi + 0x800]
call fcn.140030d00
cmp dword [0x1400ece80], 0
je 0x14003b28c
lea rcx, [rsi + 0xb70]
lea rdx, [0x1400b63f8]
call fcn.140056d6c
mov dword [rsi + 0x1084], r12d
lea rcx, [rsi + 0x800]
call fcn.14004fa00
mov rcx, rsi
call fcn.14003d4e0
cmp dword [0x1400ece94], 0
je 0x14003b2a9
lea rcx, [rsi + 0x800]
call fcn.1400202a0
cmp dword [rsi + 0xcd8], 0
je 0x14003b2ba
mov rcx, rsi
call fcn.14003cff0
cmp dword [0x1400ece88], 0
je 0x14003b310
test byte [rsi + 0x9a8], 8
je 0x14003b310
mov rcx, rsi
call fcn.14003d270
lea rdi, [rsi + 0x10c0]
cmp qword [rdi], 0
jne 0x14003b310
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 0x14003b310
mov edx, dword [rsi + 0x40]
call fcn.140039190
cmp dword [0x1400ecea8], 0
je 0x14003b36d
lea rcx, [rsi + 0x800]
call fcn.140031f10
test rax, rax
je 0x14003b335
mov rdx, rax
mov rcx, rsi
call fcn.14004ad40
mov dword [rsi + 0xb68], r12d
lea rdi, [0x1400e4690]
mov ebx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rdx, qword [rdi]
test rdx, rdx
je 0x14003b35c
lea rcx, [rsi + 0xb70]
call fcn.140056d6c
add rdi, 8
sub rbx, 1
jne 0x14003b348
mov dword [rsi + 0x1084], r12d
cmp dword [0x1400ece28], 0
je 0x14003b3a9
lea rcx, [rsi + 0xb70]
lea rdx, [0x1400b6008]
call fcn.140056d6c
mov dword [rsi + 0x1084], r12d
lea rcx, [rsi + 0x800]
call fcn.140031b50
test rax, rax
je 0x14003b3a9
mov rcx, rax
call fcn.14004f7b0
cmp dword [0x1400ece98], 0
je 0x14003b3cc
lea rcx, [rsi + 0xb70]
lea rdx, [0x1400b6008]
call fcn.140056d6c
mov dword [rsi + 0x1084], r12d
cmp dword [rsi + 0x1084], 0
je 0x14003b3eb
mov qword [rsi + 0xba8], rsi
lea rcx, [rsi + 0x800]
mov rdx, r14
call fcn.140030d00
mov rcx, rsi
call fcn.14003ce50
cmp dword [0x1400ece40], 0
je 0x14003b421
cmp qword [0x1400ebaf8], 0
jne 0x14003b421
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 0x14003b439
mov dword [0x1400eba10], eax
mov rcx, rsi
call fcn.14004c9f0
mov eax, r12d
jmp 0x14003b448
mov rcx, rsi
call fcn.14003def0
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