Function at 0x526970
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53db3b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x59a0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 7
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x424]
call fcn.0042be10
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x18], 0
je 0x5269c4
or dword [edi + 0xa44], 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x424]
call fcn.0042be10
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x18], 0
je 0x5269ee
or dword [edi + 0xa44], 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x424]
call fcn.0042be10
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x18], 0
je 0x526a18
or dword [edi + 0xa44], 8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x424]
call fcn.0042be10
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x18], 0
je 0x526a42
or dword [edi + 0xa44], 0x10
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWARETencentMobileGamePCGameDownload
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x526af2
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push eax
push 0
push str.TGP_Data_Moving_Run
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x526ace
cmp dword [ebp - 0x18], 4
jne 0x526ace
mov eax, dword [ebp - 0x10]
inc eax
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push 0x571ddc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x526af2
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0
push 0x571e04
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [edi + 0xa44], 1
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x526b0e
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x526b23
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x526b27
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00525480
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x526b52
cmp dword [esi - 0xc], 0
je 0x526b67
or dword [edi + 0xa44], 0x40
jmp 0x526b67
lea ecx, [edi + 0xa48]
mov dword [edi + 0xa40], 0
call fcn.00402ad0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x526b9c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x526b9a
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x526b9c
call edx
test ebx, ebx
je 0x526ba7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret