Function at 0x3bc1cb909
Capabilities:
Set registry value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
mov r12d, r9d
test rcx, rcx
je 0x3bc1cb99c
test rdx, rdx
je 0x3bc1cb9cc
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
mov r8d, 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test eax, eax
je 0x3bc1cba42
mov dword [rsp + 0x20], eax
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_set_value
lea rcx, str._E____s_____RegOpenKeyA_failed_root0x_p_key_s_res_lu__n
call fcn.3bc1c1292
cmp ebp, 0x20
jg 0x3bc1cbc10
test ebp, ebp
js 0x3bc1cbbfe
cmp ebp, 0x20
ja case.0x3bc1cb99a.1
mov ebp, ebp
lea rdx, [0x3bc1d9158]
movsxd rax, dword [rdx + rbp*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x20], 0x19c
lea r9, str.H:_Projects_rdp_bot_codebase_registry.c
lea r8, str._root___NULL_
lea rdx, str.registry_set_value
lea rcx, [0x3bc1d88b8]
call fcn.3bc1c1292
mov ebp, 0x40000004
jmp 0x3bc1cb9fa
mov dword [rsp + 0x20], 0x19d
lea r9, str.H:_Projects_rdp_bot_codebase_registry.c
lea r8, str._key___NULL_
lea rdx, str.registry_set_value
lea rcx, [0x3bc1d88b8]
call fcn.3bc1c1292
mov ebp, 0x40000004
mov eax, ebp
and eax, 0x3fffffff
test rdi, rdi
je 0x3bc1cbc7f
test rbx, rbx
je 0x3bc1cbc8b
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_set_value
lea rcx, str._E____s_____Failed_root0x_p_key_s_param_s_err_08x__n
call fcn.3bc1c1292
mov eax, ebp
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8d, 0
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, eax
test eax, eax
je 0x3bc1cbb8b
test rdi, rdi
je 0x3bc1cbac6
mov rax, rdi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_set_value
lea rcx, str._E____s_____RegSetValueExA_failed_root0x_p_key_s_param_s_res_lu__n
call fcn.3bc1c1292
cmp ebp, 0x20
jg 0x3bc1cbb03
test ebp, ebp
js 0x3bc1cbacf
cmp ebp, 0x20
ja case.0x3bc1cbac4.1
mov ebp, ebp
lea rdx, [0x3bc1d91dc]
movsxd rax, dword [rdx + rbp*4]
add rax, rdx
jmp rax
lea rax, [0x3bc1d8860]
jmp 0x3bc1cba84
cmp ebp, 0x80070005
je 0x3bc1cbb7d
mov ebp, 0x40000001
jmp 0x3bc1cbb90
mov ebp, 0x40000009
jmp 0x3bc1cbb90
mov ebp, 0
jmp 0x3bc1cbb90
mov ebp, 0x40000001
jmp 0x3bc1cbb90
cmp ebp, 0x91
je 0x3bc1cbbcd
cmp ebp, 0x91
jg 0x3bc1cbb3f
cmp ebp, 0x50
je 0x3bc1cbbd4
cmp ebp, 0x50
jl 0x3bc1cbbdb
sub ebp, 0x7e
cmp ebp, 1
ja 0x3bc1cbb38
mov ebp, 0x40000003
jmp 0x3bc1cbb90
mov ebp, 0x40000001
jmp 0x3bc1cbb90
cmp ebp, 0xb7
je 0x3bc1cbbe2
cmp ebp, 0xb7
jg 0x3bc1cbbe9
cmp ebp, 0x94
je 0x3bc1cbbf0
cmp ebp, 0xaa
jne 0x3bc1cbbf7
mov ebp, 0x4000000d
jmp 0x3bc1cbb90
mov ebp, 0x40000003
jmp 0x3bc1cbb90
mov ebp, 0x40000009
jmp 0x3bc1cbb90
mov ebp, 0x4000000d
jmp 0x3bc1cbb90
mov ebp, 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x3bc1cb9fa
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_set_value
lea rcx, str._I____s_____Done_root0x_p_key_s_param_s__n
call fcn.3bc1c1292
jmp 0x3bc1cba35
mov ebp, 0x40000008
jmp 0x3bc1cbb90
mov ebp, 0x4000000d
jmp 0x3bc1cbb90
mov ebp, 0x40000007
jmp 0x3bc1cbb90
mov ebp, 0x40000001
jmp 0x3bc1cbb90
mov ebp, 0x40000007
jmp 0x3bc1cbb90
mov ebp, 0x40000001
jmp 0x3bc1cbb90
mov ebp, 0x4000000d
jmp 0x3bc1cbb90
mov ebp, 0x40000001
jmp 0x3bc1cbb90
cmp ebp, 0x80070005
je case.0x3bc1cb99a.5
mov ebp, 0x40000001
jmp 0x3bc1cb9fa
cmp ebp, 0x91
je case.0x3bc1cb99a.32
jg 0x3bc1cbc33
cmp ebp, 0x50
je 0x3bc1cbc57
jl case.0x3bc1cb99a.1
sub ebp, 0x7e
cmp ebp, 1
ja case.0x3bc1cb99a.1
mov ebp, 0x40000003
jmp 0x3bc1cb9fa
cmp ebp, 0xb7
je 0x3bc1cbc57
jg case.0x3bc1cb99a.1
cmp ebp, 0x94
je case.0x3bc1cb99a.32
cmp ebp, 0xaa
jne case.0x3bc1cb99a.1
mov ebp, 0x4000000d
jmp 0x3bc1cb9fa
mov ebp, 0x40000007
jmp 0x3bc1cb9fa
mov ebp, 0x40000009
jmp 0x3bc1cb9fa
mov ebp, 0x40000008
jmp 0x3bc1cb9fa
mov ebp, 0
jmp 0x3bc1cbba3
lea rdi, [0x3bc1d8860]
jmp 0x3bc1cba0a
lea rbx, [0x3bc1d8860]
jmp 0x3bc1cba13