Function at 0x26f497e42
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 0x26f497efa
test rdx, rdx
je 0x26f497f2d
test r9, r9
je 0x26f497f60
test r13, r13
je 0x26f497f93
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 0x26f497fc6
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.26f49a202
cmp r12d, 0x20
jg 0x26f4981f7
test r12d, r12d
js 0x26f4981c2
cmp r12d, 0x20
ja case.0x26f497ef8.1
mov r12d, r12d
lea rdx, [0x26f4a3978]
movsxd rax, dword [rdx + r12*4]
add rax, rdx
jmp rax
mov dword [rsp + 0x20], 0xfc
lea r9, str.H:_Projects_rdp_bot_codebase_registry.c
lea r8, str._root___NULL_
lea rdx, str.registry_get_value
lea rcx, [0x26f4a33d8]
call fcn.26f49a202
mov ebp, 0x40000004
jmp 0x26f498113
mov dword [rsp + 0x20], 0xfd
lea r9, str.H:_Projects_rdp_bot_codebase_registry.c
lea r8, str._key___NULL_
lea rdx, str.registry_get_value
lea rcx, [0x26f4a33d8]
call fcn.26f49a202
mov ebp, 0x40000004
jmp 0x26f498113
mov dword [rsp + 0x20], 0xfe
lea r9, str.H:_Projects_rdp_bot_codebase_registry.c
lea r8, [0x26f4a385f]
lea rdx, str.registry_get_value
lea rcx, [0x26f4a33d8]
call fcn.26f49a202
mov ebp, 0x40000004
jmp 0x26f498113
mov dword [rsp + 0x20], 0xff
lea r9, str.H:_Projects_rdp_bot_codebase_registry.c
lea r8, str._value_sz___NULL_
lea rdx, str.registry_get_value
lea rcx, [0x26f4a33d8]
call fcn.26f49a202
mov ebp, 0x40000004
jmp 0x26f498113
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 0x26f498103
test rdi, rdi
je 0x26f49803e
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.26f49a202
cmp ebp, 0x20
jg 0x26f49807b
test ebp, ebp
js 0x26f498047
cmp ebp, 0x20
ja case.0x26f49803c.1
mov ebp, ebp
lea rdx, [0x26f4a39fc]
movsxd rax, dword [rdx + rbp*4]
add rax, rdx
jmp rax
lea rax, [0x26f4a3380]
jmp 0x26f497ffc
cmp ebp, 0x80070005
je 0x26f4980f5
mov ebp, 0x40000001
jmp 0x26f498108
mov ebp, 0x40000009
jmp 0x26f498108
mov ebp, 0
jmp 0x26f498108
mov ebp, 0x40000001
jmp 0x26f498108
cmp ebp, 0x91
je 0x26f49817f
cmp ebp, 0x91
jg 0x26f4980b7
cmp ebp, 0x50
je 0x26f498186
cmp ebp, 0x50
jl 0x26f498190
sub ebp, 0x7e
cmp ebp, 1
ja 0x26f4980b0
mov ebp, 0x40000003
jmp 0x26f498108
mov ebp, 0x40000001
jmp 0x26f498108
cmp ebp, 0xb7
je 0x26f49819a
cmp ebp, 0xb7
jg 0x26f4981a4
cmp ebp, 0x94
je 0x26f4981ae
cmp ebp, 0xaa
jne 0x26f4981b8
mov ebp, 0x4000000d
jmp 0x26f498108
mov ebp, 0x40000003
jmp 0x26f498108
mov ebp, 0x40000009
jmp 0x26f498108
mov ebp, 0x4000000d
jmp 0x26f498108
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 0x26f4982c1
mov qword [r13], 0
mov eax, ebp
and eax, 0x3fffffff
test rdi, rdi
je 0x26f4982ec
test rbx, rbx
je 0x26f4982f8
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.26f49a202
mov eax, ebp
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ebp, 0x40000008
jmp 0x26f498108
mov ebp, 0x4000000d
jmp 0x26f498108
mov ebp, 0x40000007
jmp 0x26f498108
mov ebp, 0x40000001
jmp 0x26f498108
mov ebp, 0x40000007
jmp 0x26f498108
mov ebp, 0x40000001
jmp 0x26f498108
mov ebp, 0x4000000d
jmp 0x26f498108
mov ebp, 0x40000001
jmp 0x26f498108
cmp r12d, 0x80070005
je 0x26f49825d
mov ebp, 0x40000001
jmp 0x26f498113
mov ebp, 0x40000009
jmp 0x26f498113
mov ebp, 0
jmp 0x26f498113
mov ebp, 0x40000001
jmp 0x26f498113
cmp r12d, 0x91
je 0x26f49827b
jg 0x26f49822c
cmp r12d, 0x50
je 0x26f498285
jl 0x26f49828f
sub r12d, 0x7e
cmp r12d, 1
ja 0x26f498222
mov ebp, 0x40000003
jmp 0x26f498113
mov ebp, 0x40000001
jmp 0x26f498113
cmp r12d, 0xb7
je 0x26f498299
jg 0x26f4982a3
cmp r12d, 0x94
je 0x26f4982ad
cmp r12d, 0xaa
jne 0x26f4982b7
mov ebp, 0x4000000d
jmp 0x26f498113
mov ebp, 0x40000003
jmp 0x26f498113
mov ebp, 0x40000009
jmp 0x26f498113
mov ebp, 0x4000000d
jmp 0x26f498113
mov ebp, 0x40000008
jmp 0x26f498113
mov ebp, 0x4000000d
jmp 0x26f498113
mov ebp, 0x40000007
jmp 0x26f498113
mov ebp, 0x40000001
jmp 0x26f498113
mov ebp, 0x40000007
jmp 0x26f498113
mov ebp, 0x40000001
jmp 0x26f498113
mov ebp, 0x4000000d
jmp 0x26f498113
mov ebp, 0x40000001
jmp 0x26f498113
test ebp, ebp
jne 0x26f49812e
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.26f49a202
jmp 0x26f498169
lea rdi, [0x26f4a3380]
jmp 0x26f49813e
lea rbx, [0x26f4a3380]
jmp 0x26f498147