Function at 0x4f8270
Capabilities:
Check for time delay via gettickcount
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a48a
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x59a0a0]
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
mov dword [ebp - 0x258], ecx
xor ebx, ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 4], ebx
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4f82d7
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f82ec
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4f82f0
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 1
mov eax, dword [0x59fb74]
cmp dword [eax - 0xc], 0
jne 0x4f831c
push 0x2a
push str.SoftwareTencentMobileGamePCInstallFlags
lea ecx, [ebp - 0x24c]
call fcn.00402d50
jmp 0x4f8331
push eax
lea eax, [ebp - 0x24c]
push str.SoftwareTencent_sInstallFlags
push eax
call fcn.004023f0
add esp, 0xc
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x244]
push eax
push 0xf003f
push 0
push esi
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x244], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4f85fe
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x250]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x264], ebx
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x260], 0
push eax
push 0
push 0x56e594
push ebx
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x250], 4
call edi
test eax, eax
jne 0x4f85df
cmp dword [ebp - 0x248], 4
jne 0x4f85df
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 4
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0x56e5a8
push ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x4f8434
cmp dword [ebp - 0x250], 4
jne 0x4f8434
call edi
cmp eax, dword [ebp - 0x244]
jbe 0x4f85df
call edi
sub eax, dword [ebp - 0x244]
cmp eax, 0x6ddd00
ja 0x4f85df
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x248], 7
push eax
add ecx, 0x424
call fcn.0042be10
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0x18], 0
je 0x4f85df
lea ecx, [ebp - 0x240]
call fcn.00429390
mov byte [ebp - 4], 2
mov dword [ebp - 0x240], 0xc8
mov dword [ebp - 0x238], 3
mov dword [ebp - 0x1b4], 0x15e
mov dword [ebp - 0x1b0], 1
call edi
mov edi, dword [ebp - 0x258]
sub eax, dword [edi + 0x48c]
mov dword [ebp - 0x1ac], eax
mov eax, dword [edi + 0x490]
mov dword [ebp - 0x1a8], eax
mov eax, dword [0x59fadc]
mov dword [ebp - 0x128], eax
mov eax, dword [edi + 0x494]
mov dword [ebp - 0x124], eax
mov eax, dword [edi + 0x498]
mov dword [ebp - 0x120], eax
mov eax, dword [0x59fae0]
mov dword [ebp - 0x110], eax
mov eax, dword [edi + 0x4a0]
mov dword [ebp - 0x10c], eax
lea eax, [edi + 0x4c0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x108], eax
mov eax, dword [edi + 0x478]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x4f857b
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f8526
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4f857b
lea eax, [ecx + ecx]
mov dword [ebp - 0x248], eax
call fcn.0049bc00
mov edi, esp
test edi, edi
je 0x4f857b
push 0
push 0
push dword [ebp - 0x248]
mov byte [edi], 0
push edi
push 0xffffffffffffffff
push dword [ebp - 0x250]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove edi, ecx
jmp 0x4f857d
xor edi, edi
cmp byte [edi], 0
jne 0x4f8586
xor ecx, ecx
jmp 0x4f8599
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f8590
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x1a0]
call fcn.00406560
call fcn.0044c609
push ecx
lea ecx, [ebp - 0x240]
push ecx
mov ecx, eax
call fcn.0042af00
test eax, eax
je 0x4f85d4
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.AppMarket
push ebx
call edi
push str.AppMarketTime
push ebx
call edi
lea ecx, [ebp - 0x240]
call fcn.0042a2e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4f85f4
push ebx
call edi
xor ebx, ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], 0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4f8633
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f8631
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f8633
call edx
test ebx, ebx
je 0x4f863a
push ebx
call edi
lea esp, [ebp - 0x278]
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.0049aa22
mov esp, ebp
pop ebp
ret