Function at 0x140059050
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14022bb98]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Opening_Emulator...
lea rcx, [0x14022ba30]
call fcn.14005ca50
xor r13d, r13d
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], r13b
lea r8d, [r13 + 0x2a]
lea rdx, str.SOFTWAREWOW6432NodeTencentMobileGamePC_
lea rcx, [rbp - 0x40]
call fcn.14005ca50
nop
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x38], r13b
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov qword [rbp + 0x30], r13
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rdx, qword [rbp - 0x40]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140059679
mov dword [rsp + 0x78], r13d
mov r14, qword [rbp - 0x30]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 2
jb 0x1400596f9
lea r12, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r12, qword [rbp - 0x40]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
lea r15, [r14 + 2]
mov edi, reloc.WS2_32.dll_ntohs
lea rsi, [rbp - 0x20]
lea eax, [rdi + 7]
lea rbx, [rdi - 0x10]
cmp r15, rdi
jbe 0x1400591e7
mov rdi, r15
or rdi, 0xf
cmp rdi, rcx
jbe 0x14005918a
mov rdi, rcx
jmp 0x140059191
cmp rdi, rax
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x1400591d1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400596ff
mov rcx, rax
call fcn.1400c20c0
test rax, rax
je 0x14005966d
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400591e3
test rcx, rcx
je 0x1400591e0
call fcn.1400c20c0
mov rsi, rax
jmp 0x1400591e3
mov rsi, r13
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], rdi
mov r8, r14
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x4955
mov word [rsi + r14], ax
mov byte [rsi + r15], 0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
lea r8, [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14005963b
mov dword [rsp + 0x78], 0xff
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.InstallPath
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14005962f
mov qword [rbp], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], al
lea rax, [rbp + 0x60]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400592a0
lea rdx, [rbp + 0x60]
lea rcx, [rbp]
call fcn.14005ca50
nop
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov r15, qword [rbp + 0x10]
sub rax, r15
cmp rax, 0x16
jb 0x140059705
lea r13, [rbp]
cmp qword [rbp + 0x18], 0x10
setae byte [rsp + 0x30]
mov r14, qword [rbp]
cmovae r13, r14
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
lea r12, [r15 + 0x16]
mov edi, reloc.WS2_32.dll_ntohs
lea rsi, [rbp - 0x80]
cmp r12, rdi
jbe 0x14005937b
mov rdi, r12
or rdi, 0xf
cmp rdi, rcx
jbe 0x14005931d
mov rdi, rcx
jmp 0x14005932a
cmp rdi, 0x16
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmovb rdi, rcx
mov rcx, rdi
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x14005936a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005970b
mov rcx, rax
call fcn.1400c20c0
test rax, rax
je 0x1400595d5
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140059377
test rcx, rcx
je 0x140059374
call fcn.1400c20c0
mov rsi, rax
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], rdi
mov r8, r15
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [0x1400f3fc8]
movups xmmword [rsi + r15], xmm0
mov eax, dword [0x1400f3fd8]
mov dword [rsi + r15 + 0x10], eax
movzx eax, word [0x1400f3fdc]
mov word [rsi + r15 + 0x14], ax
mov byte [rsi + r12], 0
mov r9b, Ordinal_35
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rbp - 0x80]
call fcn.14005d820
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
lea r8d, [rdi + 5]
lea rdx, str..exe_
lea rcx, [rbp - 0x60]
call fcn.14005ca50
nop
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
lea r8d, [rdi + 4]
lea rdx, str..exe
lea rcx, [rsp + 0x38]
call fcn.14005ca50
nop
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.14005d5f0
mov r13, qword [rbp - 0x70]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r13
cmp rax, 8
jb 0x140059711
lea r12, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae r12, qword [rbp - 0x80]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
lea r15, [r13 + 8]
mov esi, reloc.WS2_32.dll_ntohs
lea rdi, [rbp - 0x60]
cmp r15, rsi
jbe 0x1400594f7
mov rsi, r15
or rsi, 0xf
cmp rsi, rcx
jbe 0x140059492
mov rsi, rcx
jmp 0x14005949f
cmp rsi, 0x16
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb rsi, rax
mov rcx, rsi
add rcx, 1
cmovb rcx, rbx
cmp rcx, 0x1000
jb 0x1400594e2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400596f3
mov rcx, rax
call fcn.1400c20c0
test rax, rax
je 0x1400594db
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400594f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400594f1
call fcn.1400c20c0
mov rdi, rax
jmp 0x1400594f3
xor edi, edi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rsi
mov r8, r13
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movabs rax, 0x303031206d762d20
mov qword [rdi + r13], rax
mov byte [rdi + r15], 0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140059543
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.14005ca50
lea rcx, [rsp + 0x38]
call fcn.14005cec0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400595a3
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005959d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005959d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c20fc
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400595e1
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400595dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400595dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c20fc
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
cmp byte [rsp + 0x30], 0
je 0x14005962f
mov rdx, qword [rbp + 0x18]
inc rdx
mov rax, r14
cmp rdx, 0x1000
jb 0x140059627
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059627
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400c20fc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140059679
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059674
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059674
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c20fc
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1400596c3
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400596be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400596be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c20fc
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140055b10
nop
call fcn.14005c900
int3
call fcn.140055b10
nop
call fcn.14005c900
int3
call fcn.140055b10
nop
call fcn.14005c900
int3