Function at 0x525950
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53daa6
mov eax, dword fs:[0]
push eax
sub esp, 0x460
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 edi, ecx
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x434], 0
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARE
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x525f44
mov ebx, dword [ebp - 0x424]
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], eax
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x525a2c
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x525a41
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x525a45
mov ecx, edx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x430], esi
mov byte [ebp - 4], 1
mov edx, dword [0x59fbc8]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x525d73
lea ecx, [edx - 0x10]
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x525ace
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x525d5b
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x525d58
call fcn.004021e0
mov dword [ebp - 0x42c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x525abf
mov edx, dword [ebx]
push ebx
mov ecx, dword [edx]
mov esi, dword [ecx + 4]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x525abb
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x525abf
mov ecx, edx
call esi
mov esi, dword [ebp - 0x42c]
add esi, 0x10
mov dword [ebp - 0x430], esi
mov ebx, dword [ebp - 0x424]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x525f03
test ebx, ebx
je 0x525b07
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x428]
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], 0
test eax, eax
jne 0x525f03
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
push 0x20019
push 0
push str.GuestsAndroidBlockDevice
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x525eed
mov eax, dword [ebp - 0x424]
xor edi, edi
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x450], edi
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 3
push ecx
push 0x20019
push edi
push 0x5726ac
push eax
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x525c24
mov edi, dword [ebp - 0x428]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x458], edi
push eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x428], 0x208
push eax
push 0
push 0x5726a0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x525c24
mov eax, dword [ebp - 0x42c]
cmp eax, 1
je 0x525c01
cmp eax, 2
jne 0x525c24
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x525d90
test al, 1
jne 0x525c24
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x525d99
mov dword [ebp - 0x428], 0
nop
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x448], 0x104
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x428]
test eax, eax
jne 0x525ed7
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x525c30
test edi, edi
je 0x525cc5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x42c]
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], 0
test eax, eax
jne 0x525c30
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
push str.Path
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x525c30
mov eax, dword [ebp - 0x44c]
cmp eax, 1
je 0x525d2c
cmp eax, 2
jne 0x525c30
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x525e69
test al, 1
jne 0x525c30
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x525e72
jmp 0x525c30
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x430]
call fcn.00402d50
mov esi, dword [ebp - 0x430]
jmp 0x525ace
push 0x10
push 0x5724b4
lea ecx, [ebp - 0x430]
call fcn.00402d50
mov esi, dword [ebp - 0x430]
jmp 0x525ad4
xor eax, eax
mov word [ebp - 0x218], ax
push 0x57268c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x525dc9
push 0x572670
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x525c24
lea edx, [ebp - 0x218]
mov dword [ebp - 0x434], 1
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x525de0
sub edx, ecx
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x438]
sar edx, 1
push edx
push eax
call fcn.00402d50
test edi, edi
je 0x525e11
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x525e17
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x525e24
push eax
call edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x525e59
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x525e57
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x525e59
call edx
test ebx, ebx
je 0x525f71
push ebx
call edi
jmp 0x525f71
xor eax, eax
mov word [ebp - 0x218], ax
push str.Data.vdi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x525ea2
push str.Data.sparsefs
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x525c30
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x434], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x525eb5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x438]
push eax
call fcn.00402d50
test edi, edi
je 0x525e11
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x525e17
push 0x572600
push 0x542
push str.GameDownload::CMainUIInstallApkFromBS::GetDataFullPath
push 0x57256c
jmp 0x525f13
push esi
push 0x538
push 0x5724d8
push 0x572490
lea eax, [edi + 0xa48]
mov dword [edi + 0xa40], 2
push eax
call fcn.004023f0
add esp, 0x14
lea ecx, [ebp - 0x430]
call fcn.00402ed0
test ebx, ebx
je 0x525f71
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x525f71
push str.KeyHKLM_Software
push 0x526
push 0x5723d0
lea ecx, [edi + 0xa48]
mov dword [edi + 0xa40], 2
push 0x572548
push ecx
call fcn.004023f0
add esp, 0x14
mov eax, dword [ebp - 0x434]
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 4