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

Disassembly:
mov eax, 0x44bc02
call fcn.00439d44
sub esp, 0x148
mov eax, dword [0x45f584]
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x140]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x134], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x420426
mov eax, dword [ebp - 0x120]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x118], eax
call fcn.0043957b
mov ebx, eax
mov eax, dword [ebp - 0x120]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x118], eax
call fcn.0043abf0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push edi
push str.Publisher
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42041d
cmp dword [ebp - 0x11c], 1
jne 0x42041d
push 0x450c90
push ebx
call fcn.0043af59
test eax, eax
pop ecx
pop ecx
jne 0x42041d
mov eax, dword [ebp - 0x120]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x118], eax
call fcn.0043abf0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push edi
push str.GameID
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42041d
cmp dword [ebp - 0x11c], 4
jne 0x42041d
push 4
lea eax, [ebp - 0x124]
push ebx
push eax
mov dword [ebp - 0x124], edi
call fcn.00439d70
add esp, 0xc
cmp dword [ebp - 0x124], edi
jbe 0x42041d
mov eax, dword [ebp + 0xc]
cmp eax, edi
jl 0x420222
cmp eax, dword [ebp - 0x124]
jne 0x42041d
mov eax, dword [ebp - 0x120]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x118], eax
call fcn.0043abf0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push edi
push str.BuildType
push dword [ebp + 8]
call esi
test eax, eax
jne 0x420279
cmp dword [ebp - 0x11c], 4
jne 0x420279
push 4
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.00439d70
add esp, 0xc
mov eax, dword [ebp - 0x120]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x118], eax
call fcn.0043abf0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push edi
push str.DisplayIcon
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42041d
cmp dword [ebp - 0x11c], 1
jne 0x42041d
push edi
push ebx
call fcn.0043befe
test eax, eax
pop ecx
pop ecx
jne 0x42041d
push 0x5c
call fcn.0043957b
pop ecx
mov dword [ebp - 0x128], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4202ef
mov ecx, eax
call fcn.0041fbb3
mov edi, eax
push dword [ebp - 0x130]
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [ebp - 0x128], edi
call dword [eax + 0x44]
push dword [ebp - 0x124]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x84]
mov eax, dword [ebp - 0x120]
inc eax
push eax
push 0
push ebx
mov dword [ebp - 0x118], eax
call fcn.0043abf0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push str.DisplayName
push dword [ebp + 8]
call esi
test eax, eax
jne 0x420367
cmp dword [ebp - 0x11c], 1
jne 0x420367
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x74]
mov eax, dword [ebp - 0x120]
inc eax
push eax
push 0
push ebx
mov dword [ebp - 0x118], eax
call fcn.0043abf0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push str.DisplayVersion
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4203b0
cmp dword [ebp - 0x11c], 1
jne 0x4203b0
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x7c]
mov eax, dword [ebp - 0x120]
inc eax
push eax
push 0
push ebx
mov dword [ebp - 0x118], eax
call fcn.0043abf0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push str.GameWrapperVersion
push dword [ebp + 8]
call esi
test eax, eax
jne 0x420416
cmp dword [ebp - 0x11c], 4
jne 0x420416
and dword [ebp - 0x12c], eax
push 4
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.00439d70
mov eax, dword [edi]
add esp, 0xc
push dword [ebp - 0x12c]
mov ecx, edi
call dword [eax + 0x5c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
push ebx
call fcn.004394a6
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x128]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
call fcn.004394dc
leave
ret