Function at 0x140059b20
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 - 0x160]
sub rsp, 0x260
mov rax, qword [0x14022dbc0]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor r12d, r12d
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Opening_Emulator...
lea rcx, [0x140264090]
call fcn.14005d860
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov r8d, Ordinal_46
lea rdx, str.SOFTWAREWOW6432NodeTencentMobileGamePC_
lea rcx, [rbp - 0x48]
call fcn.140055ea0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movdqa xmm1, xmmword [0x1400f7d70]
movdqu xmmword [rbp + 0x40], xmm1
mov byte [rbp + 0x30], r12b
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x18], xmm1
mov qword [rbp + 0x28], r12
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
lea rax, [rsp + 0x68]
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 0x14005a188
mov dword [rsp + 0x70], r12d
mov rsi, qword [rbp - 0x38]
movabs r13, 0x7fffffffffffffff
mov rax, r13
sub rax, rsi
cmp rax, 2
jb 0x14005a21a
lea r15, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova r15, qword [rbp - 0x48]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
lea r14, [rsi + 2]
mov ebx, reloc.WS2_32.dll_ntohs
lea rdi, [rbp - 0x28]
movabs rax, 0x8000000000000000
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp r14, rbx
jbe 0x140059cc0
mov rbx, r14
or rbx, 0xf
cmp rbx, r13
jbe 0x140059c87
mov rbx, r13
add rax, 0x27
mov rcx, rax
call fcn.1400c3940
test rax, rax
je 0x14005a17c
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140059cbc
cmp rbx, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140059c9c
mov rdi, r12
jmp 0x140059cbc
cmp rcx, 0x1000
jb 0x140059cb4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005a208
jmp 0x140059c68
call fcn.1400c3940
mov rdi, rax
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rbx
mov r8, rsi
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + rsi], 0x4955
mov byte [rdi + r14], 0
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14005a14a
mov dword [rsp + 0x70], 0xff
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.InstallPath
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14005a13e
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], r12
lea rax, [rbp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140059d72
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 8]
call fcn.140055ea0
nop
mov rax, r13
mov r15, qword [rbp + 8]
sub rax, r15
cmp rax, 0x16
jb 0x14005a220
lea rax, [rbp - 8]
mov r14, qword [rbp - 8]
mov r13, qword [rbp + 0x10]
cmp r13, 0xf
cmova rax, r14
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
lea r12, [r15 + 0x16]
mov edi, reloc.WS2_32.dll_ntohs
lea rsi, [rsp + 0x78]
cmp r12, rdi
jbe 0x140059e68
mov rdi, r12
or rdi, 0xf
movabs rcx, 0x7fffffffffffffff
cmp rdi, rcx
jbe 0x140059e24
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400c3940
test rax, rax
je 0x14005a0e7
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140059e5e
cmp rdi, 0x16
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140059e3e
xor esi, esi
jmp 0x140059e63
cmp rcx, 0x1000
jb 0x140059e56
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005a20e
jmp 0x140059e05
call fcn.1400c3940
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], rdi
mov r8, r15
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [0x1400f4f60]
movups xmmword [r15 + rsi], xmm0
mov eax, dword [0x1400f4f70]
mov dword [r15 + rsi + 0x10], eax
movzx eax, word [0x1400f4f74]
mov word [r15 + rsi + 0x14], ax
mov byte [rsi + r12], 0
mov r9b, Ordinal_35
xor edx, edx
mov r8d, 1
lea rcx, [rsp + 0x78]
call fcn.14005eaa0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
mov r8d, 5
lea rdx, str..exe_
lea rcx, [rbp - 0x68]
call fcn.140055ea0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov r8d, 4
lea rdx, str..exe
lea rcx, [rsp + 0x38]
call fcn.140055ea0
nop
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.14005e5b0
mov rdx, qword [rbp - 0x78]
mov qword [rsp + 0x30], rdx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rdx
cmp rax, 8
jb 0x14005a202
lea r12, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova r12, qword [rsp + 0x78]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
lea r15, [rdx + 8]
mov edi, reloc.WS2_32.dll_ntohs
lea rsi, [rbp - 0x68]
cmp r15, rdi
jbe 0x14005a004
mov rdi, r15
or rdi, 0xf
cmp rdi, rcx
jbe 0x140059fba
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400c3940
test rax, rax
je 0x140059fec
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140059ffb
cmp rdi, 0x16
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140059fd4
xor esi, esi
jmp 0x14005a000
cmp rcx, 0x1000
jb 0x140059ff3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005a214
jmp 0x140059f9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c3940
mov rsi, rax
mov rdx, qword [rsp + 0x30]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rdi
mov r8, rdx
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movabs rcx, 0x303031206d762d20
mov rax, qword [rsp + 0x30]
mov qword [rsi + rax], rcx
mov byte [rsi + r15], 0
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rdx, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
inc rbx
cmp byte [rdx + rbx], dil
jne 0x14005a054
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.140055ea0
lea rcx, [rsp + 0x38]
call fcn.14005dcc0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14005a0b4
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a0ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a0ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c397c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14005a0f3
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a0ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a0ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c397c
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], 0
cmp r13, 0xf
jbe 0x14005a13e
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14005a136
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a136
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400c397c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14005a188
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a183
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a183
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c397c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x14005a1d2
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a1cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a1cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c397c
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400c3920
lea r11, [rsp + 0x260]
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.14005d770
nop
call fcn.14005d710
nop
call fcn.14005d710
nop
call fcn.14005d710
nop
call fcn.14005d770
nop
call fcn.14005d770
int3