Function at 0x14003c210
Capabilities:
Delete registry key

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbx
push rsi
push r12
push r15
sub rsp, 0x448
xor eax, eax
mov rsi, rcx
xor r12d, r12d
lea rcx, [rsp + 0x340]
xor edx, edx
mov r8d, 0xe0
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov r15d, r12d
call fcn.14007cd30
xor r11d, r11d
lea rax, [rsp + 0x60]
lea rdx, str.SYSTEMCurrentControlSetControlPowerPowerSettings_f693fb01_e858_4f00_b20f_f30e12ac06d6191f65b5_d45c_4a4f_8aae_1ab8bfd980e6
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x98], r11d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x9c], r11d
mov dword [rsp + 0xa0], r11d
mov dword [rsp + 0x340], 0xe0
mov dword [rsi + 0x11a0], r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14003c37f
mov ebx, r12d
nop
lea rdx, [0x1400a689c]
lea rcx, [rsp + 0x300]
mov r8d, ebx
call fcn.14007dc1c
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x300]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x14003c2f6
add ebx, 1
cmp ebx, 5
jb 0x14003c2c0
lea rax, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetControlPowerPowerSettings_f693fb01_e858_4f00_b20f_f30e12ac06d6191f65b5_d45c_4a4f_8aae_1ab8bfd980e6DefaultPowerSchemeValues
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14003c362
mov rcx, qword [rsp + 0x40]
lea rdx, str.381b4222_f694_41f0_9685_ff5bb260df2e
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x40]
lea rdx, str.8c5e7fda_e8bf_4a96_9a85_a6e23a8c635c
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x40]
lea rdx, str.a1841308_3541_4fab_bc81_f71556f20b4a
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
lea rdx, str.DefaultPowerSchemeValues
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r12d
cmp dword [rsi + 0x134], ebx
jbe 0x14003c3be
nop
nop
mov eax, ebx
mov edx, 3
imul rax, rax, 0x230
lea rcx, [rax + rsi + 0x138]
call fcn.1400471a0
test al, 0x10
jne 0x14003c614
add ebx, 1
cmp ebx, dword [rsi + 0x134]
jb 0x14003c390
call fcn.14000d5f0
test al, al
jns 0x14003c614
mov qword [rsp + 0x440], rbp
lea rcx, [rsp + 0x150]
xor edx, edx
mov r8d, 0x1a8
mov qword [rsp + 0x430], r13
mov qword [rsp + 0x428], r14
call fcn.14007cd30
lea r8, [rsp + 0x150]
or r13d, 0xffffffff
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x150], 0x1a8
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x480], r12d
mov dword [rsp + 0x488], r12d
mov ebp, r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x34], r12d
or r14d, r13d
call qword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
je 0x14003c919
mov qword [rsp + 0x438], rdi
add dword [rsp + 0x30], 1
test byte [rsp + 0x1f4], 1
je 0x14003c968
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x154]
xor r8d, r8d
call fcn.140066d60
test eax, eax
je 0x14003c624
cmp dword [rsp + 0xa0], r12d
je 0x14003c624
xor eax, eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x154]
or esi, 0xffffffff
xor r8d, r8d
mov edi, r12d
mov dword [rsp + 0xa8], r12d
mov dword [rsp + 0xac], eax
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xbc], eax
or ebp, esi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x80], eax
call fcn.140066fe0
mov r11d, dword [rsp + 0x70]
mov ebx, r12d
mov ecx, 1
or r11d, dword [rsp + 0x6c]
mov eax, 2
lea rdx, [rsp + 0xa8]
nop
test eax, r11d
je 0x14003c541
add edi, 1
mov dword [rdx], ecx
add ebx, 1
add rdx, 4
add ecx, 1
rol eax, 1
cmp ecx, 6
jb 0x14003c530
cmp edi, 1
jbe 0x14003c94c
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x154]
xor r9d, r9d
xor edx, edx
call fcn.140067000
xor r9d, r9d
lea r8, [rsp + 0x78]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x154]
call fcn.140067000
test ebx, ebx
mov r11d, r12d
je 0x14003c942
mov edx, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x80]
lea rcx, [rsp + 0xa8]
nop
nop
mov eax, dword [rcx]
cmp edx, eax
cmove esi, r11d
cmp r8d, eax
cmove ebp, r11d
add r11d, 1
add rcx, 4
cmp r11d, ebx
jb 0x14003c5b0
cmp esi, 0xffffffff
je 0x14003c960
cmp ebp, 0xffffffff
je 0x14003c956
movzx eax, byte [rsp + 0x478]
mov r8d, esi
mov rsi, qword [rsp + 0x470]
mov byte [rsp + 0x28], al
lea rax, [rsp + 0xa8]
mov r9d, ebp
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14003b0a0
jmp 0x14003c968
xor eax, eax
add rsp, 0x448
pop r15
pop r12
pop rsi
pop rbx
ret
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x154]
xor r8d, r8d
call fcn.140066320
test eax, eax
je 0x14003c968
cmp dword [rsp + 0x348], 1
jbe 0x14003c968
lea rdx, [rsp + 0x488]
lea rcx, [rsp + 0x154]
xor r8d, r8d
mov edi, r12d
mov dword [rsp + 0x488], r12d
call fcn.140066140
test eax, eax
je 0x14003c7a7
test byte [rsp + 0x488], 1
je 0x14003c6e4
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x90
mov dword [rsp + 0x480], 1
call fcn.14007cd30
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x480]
lea rcx, [rsp + 0x154]
mov edx, 1
mov qword [rsp + 0x20], r12
call fcn.140066160
test eax, eax
je 0x14003c6e4
mov ebp, dword [rsp + 0xe4]
mov edi, dword [rsp + 0xe0]
mov dword [rsp + 0x38], ebp
test byte [rsp + 0x488], 2
je 0x14003c74b
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x90
mov dword [rsp + 0x480], 2
call fcn.14007cd30
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x480]
lea rcx, [rsp + 0x154]
mov edx, 1
mov qword [rsp + 0x20], r12
call fcn.140066160
test eax, eax
je 0x14003c74b
mov ebx, dword [rsp + 0xe4]
or edi, dword [rsp + 0xe0]
mov dword [rsp + 0x34], ebx
test byte [rsp + 0x488], 3
je 0x14003c7a7
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x90
mov dword [rsp + 0x480], 3
call fcn.14007cd30
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x480]
lea rcx, [rsp + 0x154]
mov edx, 1
mov qword [rsp + 0x20], r12
call fcn.140066160
test eax, eax
je 0x14003c7a7
or edi, dword [rsp + 0xe0]
mov r11d, dword [rsp + 0x348]
mov ebx, r12d
mov ecx, 1
test r11d, r11d
je 0x14003c911
lea rdx, [rsp + 0x34c]
mov r8, r11
nop
nop
test edi, ecx
je 0x14003c7e0
mov ax, word [rdx]
bt eax, 8
jb 0x14003c7e0
add ebx, 1
rol ecx, 1
add rdx, 0x20
sub r8, 1
jne 0x14003c7d0
cmp ebx, 5
ja 0x14003c911
cmp ebx, 1
jbe 0x14003c911
mov edx, 1
mov dword [rsp + 0x48], r12d
mov ecx, r12d
cmp r11d, edx
mov rax, r12
lea r9d, [r8 + 2]
jbe 0x14003c874
lea r10, [rsp + 0x36c]
nop
test edi, r9d
je 0x14003c865
mov r8d, dword [r10]
bt r8d, 8
jb 0x14003c865
bt r8d, 9
jb 0x14003c843
mov dword [rsp + rax*4 + 0x48], edx
add ecx, 1
add rax, 1
jmp 0x14003c865
test r15d, r15d
jne 0x14003c85a
mov dword [rsp + rax*4 + 0x48], r12d
add ecx, 1
mov r15d, 1
add rax, 1
mov dword [rsp + rax*4 + 0x48], edx
add ecx, 1
add rax, 1
add edx, 1
add r10, 0x20
rol r9d, 1
cmp edx, r11d
jb 0x14003c820
test r15d, r15d
jne 0x14003c881
mov dword [rsp + rax*4 + 0x48], r12d
add ecx, 1
cmp ecx, ebx
je 0x14003c891
lea rcx, str.Valid_Power_State_number_is_wrong__n
call fcn.14000cbb0
test ebx, ebx
mov ecx, r12d
je 0x14003c8cb
mov r9d, dword [rsp + 0x34]
lea r8d, [rbp - 1]
lea rdx, [rsp + 0x48]
add r9d, 0xffffffff
nop
nop
mov eax, dword [rdx]
cmp eax, r8d
cmove r13d, ecx
cmp eax, r9d
cmove r14d, ecx
add ecx, 1
add rdx, 4
cmp ecx, ebx
jb 0x14003c8b0
cmp r13d, 0xffffffff
je 0x14003c968
cmp r14d, 0xffffffff
je 0x14003c968
mov al, byte [rsp + 0x478]
mov r9d, r14d
mov r8d, r13d
mov byte [rsp + 0x28], al
lea rax, [rsp + 0x48]
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14003b0a0
mov r12d, 1
mov dword [rsi + 0x11a0], r12d
mov rdi, qword [rsp + 0x438]
mov r14, qword [rsp + 0x428]
mov r13, qword [rsp + 0x430]
mov rbp, qword [rsp + 0x440]
mov eax, r12d
add rsp, 0x448
pop r15
pop r12
pop rsi
pop rbx
ret
mov rsi, qword [rsp + 0x470]
jmp 0x14003c968
mov rsi, qword [rsp + 0x470]
jmp 0x14003c968
mov rsi, qword [rsp + 0x470]
jmp 0x14003c968
mov rsi, qword [rsp + 0x470]
mov edx, dword [rsp + 0x30]
lea r8, [rsp + 0x150]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
je 0x14003c911
mov ebp, dword [rsp + 0x38]
jmp 0x14003c451