Function at 0x419a20
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4215cd
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x87c], 0
movlpd qword [ebp - 0x870], xmm0
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x850]
call fcn.00405cb0
push 0x4223dc
lea eax, [ebp - 0x850]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.00414220
push 0x422a00
push eax
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 2
push eax
call fcn.00414220
add esp, 0x18
mov ecx, dword [eax]
or esi, 0xffffffff
mov edi, dword [ebp - 0x850]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x419b66
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x419b57
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x419b57
push edx
call fcn.00414970
add esp, 4
mov dword [ebp - 0x85c], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x419b4c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x85c]
add eax, 0x10
mov dword [ebp - 0x850], eax
jmp 0x419b66
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x850]
call fcn.004096f0
mov edx, dword [ebp - 0x858]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419b87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x868]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419ba8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x834]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x834]
push dword [ebp - 0x850]
push 0x104
push eax
push str.MobileGamePC
push 0x422a34
push 0x422a44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x854]
call fcn.00405cb0
mov eax, dword [ebp - 0x854]
mov byte [ebp - 4], 4
cmp dword [eax - 0xc], 0
jne 0x419c19
push 0xc
push str.MobileGamePC
lea ecx, [ebp - 0x854]
call fcn.004096f0
push str.SOFTWARETencent_
lea ecx, [ebp - 0x85c]
call fcn.00405cb0
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.004142f0
add esp, 0xc
mov edx, dword [ebp - 0x85c]
mov eax, esi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419c65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xa
push str.AppMarket
lea ecx, [ebp - 0x860]
call fcn.00414cb0
push 0x20019
push dword [ebp - 0x860]
lea ecx, [ebp - 0x87c]
push 0x80000002
call fcn.00411ef0
mov ebx, dword [ebp - 0x87c]
test eax, eax
jne 0x419ee3
push 0x412
lea eax, [ebp - 0x62c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x864], 0x410
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x858]
push eax
push 0
push 0x422aa4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419ee3
mov eax, dword [ebp - 0x858]
cmp eax, 1
je 0x419cff
cmp eax, 2
jne 0x419ee3
mov eax, dword [ebp - 0x864]
test eax, eax
je 0x419d2b
test al, 1
jne 0x419ee3
shr eax, 1
cmp word [ebp + eax*2 - 0x62e], 0
jne 0x419ee3
mov ax, word [ebp - 0x62c]
jmp 0x419d34
xor eax, eax
mov word [ebp - 0x62c], ax
xor ecx, ecx
mov dword [ebp - 0x838], 7
mov dword [ebp - 0x83c], 0
mov word [ebp - 0x84c], cx
test ax, ax
je 0x419d6f
lea ecx, [ebp - 0x62c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419d60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x84c]
call fcn.00406520
lea ecx, [ebp - 0x868]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x858], ebx
push ecx
lea ecx, [ebp - 0x85c]
mov dword [ebp - 0x85c], ebx
push ecx
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x864], ebx
xor edi, edi
mov dword [ebp - 0x868], ebx
cmp dword [ebp - 0x838], 8
lea eax, [ebp - 0x84c]
push ecx
cmovae eax, dword [ebp - 0x84c]
push str._u._u._u._u
push eax
call fcn.0041cb10
add esp, 0x18
cmp eax, 4
jne 0x419e07
movzx edi, word [ebp - 0x864]
movzx eax, word [ebp - 0x868]
movzx ebx, word [ebp - 0x858]
shl edi, 0x10
or edi, eax
shl ebx, 0x10
movzx eax, word [ebp - 0x85c]
or ebx, eax
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x86c], ebx
cmp eax, 8
jb 0x419e7a
mov ecx, dword [ebp - 0x84c]
inc eax
cmp eax, 0x7fffffff
jbe 0x419e32
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
add eax, eax
cmp eax, 0x1000
jb 0x419e71
test byte [ebp - 0x84c], 0x1f
je 0x419e4a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x419e57
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ecx, eax
cmp ecx, 4
jae 0x419e64
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ecx, 0x23
jbe 0x419e6f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, eax
push ecx
call fcn.0041e4c4
add esp, 4
mov edx, dword [ebp - 0x860]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419e9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x854]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419ebc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x850]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x419edb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x87c]
jmp 0x419f44
mov edx, dword [ebp - 0x860]
mov eax, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419f04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x854]
mov eax, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419f25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x850]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x419f44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x419f4f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x870]
mov edx, dword [ebp - 0x86c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret