Function at 0x140009292
Capabilities:
Query or enumerate registry value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
mov rbp, r9
mov r13, qword [rsp + 0xa0]
test rcx, rcx
je 0x14000934a
test rdx, rdx
je 0x14000937d
test r9, r9
je 0x1400093b0
test r13, r13
je 0x1400093e3
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r12d, eax
test eax, eax
je 0x140009416
mov dword [rsp + 0x20], eax
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_get_value
lea rcx, str._E____s_____RegOpenKeyA_failed_root0x_p_key_s_res_lu__n
call fcn.140002ef2
cmp r12d, 0x20
jg 0x140009647
test r12d, r12d
js 0x140009612
cmp r12d, 0x20
ja case.0x140009348.1
mov r12d, r12d
lea rdx, [0x140013e38]
movsxd rax, dword [rdx + r12*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x20], 0xfc
lea r9, str.C:_Projects_rdp_bot_codebase_registry.c
lea r8, str._root___NULL_
lea rdx, str.registry_get_value
lea rcx, str._E____s_____Assertation_failed:__s__file__s__line__d_n
call fcn.140002ef2
mov ebp, 0x40000004
jmp 0x140009563
mov dword [rsp + 0x20], 0xfd
lea r9, str.C:_Projects_rdp_bot_codebase_registry.c
lea r8, str._key___NULL_
lea rdx, str.registry_get_value
lea rcx, str._E____s_____Assertation_failed:__s__file__s__line__d_n
call fcn.140002ef2
mov ebp, 0x40000004
jmp 0x140009563
mov dword [rsp + 0x20], 0xfe
lea r9, str.C:_Projects_rdp_bot_codebase_registry.c
lea r8, str._value___NULL_
lea rdx, str.registry_get_value
lea rcx, str._E____s_____Assertation_failed:__s__file__s__line__d_n
call fcn.140002ef2
mov ebp, 0x40000004
jmp 0x140009563
mov dword [rsp + 0x20], 0xff
lea r9, str.C:_Projects_rdp_bot_codebase_registry.c
lea r8, str._value_sz___NULL_
lea rdx, str.registry_get_value
lea rcx, str._E____s_____Assertation_failed:__s__file__s__line__d_n
call fcn.140002ef2
mov ebp, 0x40000004
jmp 0x140009563
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbp
mov r9d, 0
mov r8d, 0
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
test eax, eax
je 0x140009553
test rdi, rdi
je 0x14000948e
mov rax, rdi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_get_value
lea rcx, str._E____s_____RegQueryValueA_failed_root0x_p_key_s_param_s_res_lu__n
call fcn.140002ef2
cmp ebp, 0x20
jg 0x1400094cb
test ebp, ebp
js 0x140009497
cmp ebp, 0x20
ja case.0x14000948c.1
mov ebp, ebp
lea rdx, [0x140013ebc]
movsxd rax, dword [rdx + rbp*4]
add rax, rdx
jmp rax
lea rax, [0x140013840]
jmp 0x14000944c
cmp ebp, 0x80070005
je 0x140009545
mov ebp, 0x40000001
jmp 0x140009558
mov ebp, 0x40000009
jmp 0x140009558
mov ebp, 0
jmp 0x140009558
mov ebp, 0x40000001
jmp 0x140009558
cmp ebp, 0x91
je 0x1400095cf
cmp ebp, 0x91
jg 0x140009507
cmp ebp, 0x50
je 0x1400095d6
cmp ebp, 0x50
jl 0x1400095e0
sub ebp, 0x7e
cmp ebp, 1
ja 0x140009500
mov ebp, 0x40000003
jmp 0x140009558
mov ebp, 0x40000001
jmp 0x140009558
cmp ebp, 0xb7
je 0x1400095ea
cmp ebp, 0xb7
jg 0x1400095f4
cmp ebp, 0x94
je 0x1400095fe
cmp ebp, 0xaa
jne 0x140009608
mov ebp, 0x4000000d
jmp 0x140009558
mov ebp, 0x40000003
jmp 0x140009558
mov ebp, 0x40000009
jmp 0x140009558
mov ebp, 0x4000000d
jmp 0x140009558
mov ebp, 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
setne al
test r13, r13
setne dl
test dl, al
je 0x140009711
mov qword [r13], 0
mov eax, ebp
and eax, 0x3fffffff
test rdi, rdi
je 0x14000973c
test rbx, rbx
je 0x140009748
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_get_value
lea rcx, str._E____s_____Failed_root0x_p_key_s_param_s_err_08x__n
call fcn.140002ef2
mov eax, ebp
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ebp, 0x40000008
jmp 0x140009558
mov ebp, 0x4000000d
jmp 0x140009558
mov ebp, 0x40000007
jmp 0x140009558
mov ebp, 0x40000001
jmp 0x140009558
mov ebp, 0x40000007
jmp 0x140009558
mov ebp, 0x40000001
jmp 0x140009558
mov ebp, 0x4000000d
jmp 0x140009558
mov ebp, 0x40000001
jmp 0x140009558
cmp r12d, 0x80070005
je 0x1400096ad
mov ebp, 0x40000001
jmp 0x140009563
mov ebp, 0x40000009
jmp 0x140009563
mov ebp, 0
jmp 0x140009563
mov ebp, 0x40000001
jmp 0x140009563
cmp r12d, 0x91
je 0x1400096cb
jg 0x14000967c
cmp r12d, 0x50
je 0x1400096d5
jl 0x1400096df
sub r12d, 0x7e
cmp r12d, 1
ja 0x140009672
mov ebp, 0x40000003
jmp 0x140009563
mov ebp, 0x40000001
jmp 0x140009563
cmp r12d, 0xb7
je 0x1400096e9
jg 0x1400096f3
cmp r12d, 0x94
je 0x1400096fd
cmp r12d, 0xaa
jne 0x140009707
mov ebp, 0x4000000d
jmp 0x140009563
mov ebp, 0x40000003
jmp 0x140009563
mov ebp, 0x40000009
jmp 0x140009563
mov ebp, 0x4000000d
jmp 0x140009563
mov ebp, 0x40000008
jmp 0x140009563
mov ebp, 0x4000000d
jmp 0x140009563
mov ebp, 0x40000007
jmp 0x140009563
mov ebp, 0x40000001
jmp 0x140009563
mov ebp, 0x40000007
jmp 0x140009563
mov ebp, 0x40000001
jmp 0x140009563
mov ebp, 0x4000000d
jmp 0x140009563
mov ebp, 0x40000001
jmp 0x140009563
test ebp, ebp
jne 0x14000957e
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rsi
lea rdx, str.registry_get_value
lea rcx, str._D____s_____Done_root0x_p_key_s_param_s__n
call fcn.140002ef2
jmp 0x1400095b9
lea rdi, [0x140013840]
jmp 0x14000958e
lea rbx, [0x140013840]
jmp 0x140009597