Function at 0x402a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4088d8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4a8
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp ecx, 1
jne 0x402c76
push 0x4099b0
lea ecx, [ebp - 0x434]
call fcn.004058d0
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x420], 7
lea eax, [ebp - 0x434]
push ecx
cmova eax, dword [ebp - 0x434]
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402c32
mov ecx, dword [ebp - 0x424]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x41c], 0x1fe
cmp eax, 2
jb 0x4031f4
cmp dword [ebp - 0x420], 7
lea eax, [ebp - 0x434]
push 2
cmova eax, dword [ebp - 0x434]
push 0x409a08
push ecx
push eax
push ecx
push dword [ebp - 0x4b0]
lea ecx, [ebp - 0x47c]
call fcn.00407470
cmp dword [ebp - 0x468], 7
lea ecx, [ebp - 0x4b4]
lea eax, [ebp - 0x47c]
cmova eax, dword [ebp - 0x47c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402be8
push 0x1fe
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x409a10
push dword [ebp - 0x4b4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4b4]
call esi
push dword [ebp - 0x4b8]
call esi
mov ecx, dword [ebp - 0x468]
cmp ecx, 7
jbe 0x402c32
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402c28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407b51
add esp, 8
mov ecx, dword [ebp - 0x420]
cmp ecx, 7
jbe 0x4031d6
mov edx, dword [ebp - 0x434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4031cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4031cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 2
jne 0x4031d6
push 0x2a
xorps xmm0, xmm0
mov dword [ebp - 0x454], 0
push str.SOFTWAREWOW6432NodeTencentMobileGamePC_
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x450], 0
movups xmmword [ebp - 0x464], xmm0
call fcn.00406d30
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x450], 0xf
lea eax, [ebp - 0x464]
push ecx
cmova eax, dword [ebp - 0x464]
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40319a
mov ecx, dword [ebp - 0x454]
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x41c], 0xff
cmp eax, 2
jb 0x4031f9
cmp dword [ebp - 0x450], 0xf
lea eax, [ebp - 0x464]
push 2
cmova eax, dword [ebp - 0x464]
push 0x409a54
push ecx
push eax
push ecx
push dword [ebp - 0x4b0]
lea ecx, [ebp - 0x4ac]
call fcn.00407580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4b4]
cmp dword [ebp - 0x498], 0xf
lea eax, [ebp - 0x4ac]
push ecx
cmova eax, dword [ebp - 0x4ac]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403152
push 0xff
push eax
lea eax, [ebp - 0x120]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x4b4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403146
push 0xff
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x120]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x47c]
call fcn.004058d0
mov edi, 0x7ffffffe
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x46c]
mov eax, edi
sub eax, ecx
cmp eax, 0x16
jb 0x4031f4
cmp dword [ebp - 0x468], 7
lea eax, [ebp - 0x47c]
push 0x16
cmova eax, dword [ebp - 0x47c]
push str.AndroidEmulatorEn.exe
push ecx
push eax
push ecx
push dword [ebp - 0x4b0]
lea ecx, [ebp - 0x44c]
call fcn.00407470
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x438]
mov eax, ecx
mov edx, dword [ebp - 0x43c]
sub eax, edx
cmp eax, 1
jb 0x402e7b
cmp ecx, 7
lea eax, [edx + 1]
lea esi, [ebp - 0x44c]
mov dword [ebp - 0x43c], eax
cmova esi, dword [ebp - 0x44c]
lea eax, [edx*2 + 2]
push eax
push esi
lea ecx, [esi + 2]
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, 0x22
add esp, 0xc
mov word [esi], ax
jmp 0x402e97
sub esp, 0xc
mov byte [ebp - 0x4b8], 0
push dword [ebp - 0x4b8]
push ecx
lea ecx, [ebp - 0x44c]
call fcn.00406bd0
push str..exe_
lea ecx, [ebp - 0x434]
call fcn.004058d0
push str..exe
lea ecx, [ebp - 0x494]
mov byte [ebp - 4], 5
call fcn.004058d0
push 0
lea eax, [ebp - 0x494]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x44c]
call fcn.00405730
mov esi, eax
cmp esi, 0xffffffff
je 0x402f30
mov edi, dword [ebp - 0x424]
cmp dword [ebp - 0x420], 7
lea ecx, [ebp - 0x434]
push edi
cmova ecx, dword [ebp - 0x434]
push ecx
push dword [ebp - 0x484]
lea ecx, [ebp - 0x44c]
push esi
call fcn.00406160
mov edi, dword [ebp - 0x424]
lea ecx, [ebp - 0x44c]
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00405730
mov esi, eax
cmp esi, 0xffffffff
jne 0x402ee0
mov edi, 0x7ffffffe
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x480]
cmp ecx, 7
jbe 0x402f74
mov edx, dword [ebp - 0x494]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403136
push ecx
push edx
call fcn.00407b51
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x420]
cmp ecx, 7
jbe 0x402fb8
mov edx, dword [ebp - 0x434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403136
push ecx
push edx
call fcn.00407b51
add esp, 8
mov ecx, dword [ebp - 0x43c]
sub edi, ecx
cmp edi, 8
jb 0x4031f4
cmp dword [ebp - 0x438], 7
lea eax, [ebp - 0x44c]
push 8
cmova eax, dword [ebp - 0x44c]
push str.__vm_100
push ecx
push eax
push ecx
push dword [ebp - 0x4b0]
lea ecx, [ebp - 0x494]
call fcn.00407470
mov byte [ebp - 4], 7
lea eax, [ebp - 0x494]
cmp dword [ebp - 0x480], 7
lea ecx, [ebp - 0x434]
cmova eax, dword [ebp - 0x494]
push eax
call fcn.004058d0
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 8
call fcn.00402410
mov ecx, dword [ebp - 0x420]
cmp ecx, 7
jbe 0x40306b
mov edx, dword [ebp - 0x434]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403061
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403136
push ecx
push edx
call fcn.00407b51
add esp, 8
mov ecx, dword [ebp - 0x480]
cmp ecx, 7
jbe 0x4030ab
mov edx, dword [ebp - 0x494]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4030a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403136
push ecx
push edx
call fcn.00407b51
add esp, 8
mov ecx, dword [ebp - 0x438]
cmp ecx, 7
jbe 0x4030e7
mov edx, dword [ebp - 0x44c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4030dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403136
push ecx
push edx
call fcn.00407b51
add esp, 8
mov ecx, dword [ebp - 0x468]
xor eax, eax
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 7
mov word [ebp - 0x44c], ax
cmp ecx, 7
jbe 0x403146
mov edx, dword [ebp - 0x47c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40313c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40313c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407b51
add esp, 8
push dword [ebp - 0x4b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x4b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x498]
cmp ecx, 0xf
jbe 0x40319a
mov edx, dword [ebp - 0x4ac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403190
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403190
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407b51
add esp, 8
mov ecx, dword [ebp - 0x450]
cmp ecx, 0xf
jbe 0x4031d6
mov edx, dword [ebp - 0x464]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4031cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4031cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407b51
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004078c2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401180
call fcn.00401180
int3