Function at 0x140009242
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 0x1400092fa
test rdx, rdx
je 0x14000932d
test r9, r9
je 0x140009360
test r13, r13
je 0x140009393
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 0x1400093c6
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 0x1400095f7
test r12d, r12d
js 0x1400095c2
cmp r12d, 0x20
ja case.0x1400092f8.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 0x140009513
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 0x140009513
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 0x140009513
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 0x140009513
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 0x140009503
test rdi, rdi
je 0x14000943e
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 0x14000947b
test ebp, ebp
js 0x140009447
cmp ebp, 0x20
ja case.0x14000943c.1
mov ebp, ebp
lea rdx, [0x140013ebc]
movsxd rax, dword [rdx + rbp*4]
add rax, rdx
jmp rax
lea rax, [0x140013840]
jmp 0x1400093fc
cmp ebp, 0x80070005
je 0x1400094f5
mov ebp, 0x40000001
jmp 0x140009508
mov ebp, 0x40000009
jmp 0x140009508
mov ebp, 0
jmp 0x140009508
mov ebp, 0x40000001
jmp 0x140009508
cmp ebp, 0x91
je 0x14000957f
cmp ebp, 0x91
jg 0x1400094b7
cmp ebp, 0x50
je 0x140009586
cmp ebp, 0x50
jl 0x140009590
sub ebp, 0x7e
cmp ebp, 1
ja 0x1400094b0
mov ebp, 0x40000003
jmp 0x140009508
mov ebp, 0x40000001
jmp 0x140009508
cmp ebp, 0xb7
je 0x14000959a
cmp ebp, 0xb7
jg 0x1400095a4
cmp ebp, 0x94
je 0x1400095ae
cmp ebp, 0xaa
jne 0x1400095b8
mov ebp, 0x4000000d
jmp 0x140009508
mov ebp, 0x40000003
jmp 0x140009508
mov ebp, 0x40000009
jmp 0x140009508
mov ebp, 0x4000000d
jmp 0x140009508
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 0x1400096c1
mov qword [r13], 0
mov eax, ebp
and eax, 0x3fffffff
test rdi, rdi
je 0x1400096ec
test rbx, rbx
je 0x1400096f8
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 0x140009508
mov ebp, 0x4000000d
jmp 0x140009508
mov ebp, 0x40000007
jmp 0x140009508
mov ebp, 0x40000001
jmp 0x140009508
mov ebp, 0x40000007
jmp 0x140009508
mov ebp, 0x40000001
jmp 0x140009508
mov ebp, 0x4000000d
jmp 0x140009508
mov ebp, 0x40000001
jmp 0x140009508
cmp r12d, 0x80070005
je 0x14000965d
mov ebp, 0x40000001
jmp 0x140009513
mov ebp, 0x40000009
jmp 0x140009513
mov ebp, 0
jmp 0x140009513
mov ebp, 0x40000001
jmp 0x140009513
cmp r12d, 0x91
je 0x14000967b
jg 0x14000962c
cmp r12d, 0x50
je 0x140009685
jl 0x14000968f
sub r12d, 0x7e
cmp r12d, 1
ja 0x140009622
mov ebp, 0x40000003
jmp 0x140009513
mov ebp, 0x40000001
jmp 0x140009513
cmp r12d, 0xb7
je 0x140009699
jg 0x1400096a3
cmp r12d, 0x94
je 0x1400096ad
cmp r12d, 0xaa
jne 0x1400096b7
mov ebp, 0x4000000d
jmp 0x140009513
mov ebp, 0x40000003
jmp 0x140009513
mov ebp, 0x40000009
jmp 0x140009513
mov ebp, 0x4000000d
jmp 0x140009513
mov ebp, 0x40000008
jmp 0x140009513
mov ebp, 0x4000000d
jmp 0x140009513
mov ebp, 0x40000007
jmp 0x140009513
mov ebp, 0x40000001
jmp 0x140009513
mov ebp, 0x40000007
jmp 0x140009513
mov ebp, 0x40000001
jmp 0x140009513
mov ebp, 0x4000000d
jmp 0x140009513
mov ebp, 0x40000001
jmp 0x140009513
test ebp, ebp
jne 0x14000952e
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 0x140009569
lea rdi, [0x140013840]
jmp 0x14000953e
lea rbx, [0x140013840]
jmp 0x140009547