Function at 0x4fb6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a8f7
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
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 - 0x26c], ecx
mov dword [ebp - 4], 0
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fb717
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb72c
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4fb730
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 1
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fb759
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb76e
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4fb772
mov ecx, edx
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
mov byte [ebp - 4], 2
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fb79b
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov edi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb7b0
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4fb7b4
mov ecx, edx
call edi
add eax, 0x10
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 4
mov eax, dword [0x59fb74]
cmp dword [eax - 0xc], 0
jne 0x4fb7fe
push 0x27
push 0x56d8e8
lea ecx, [ebp - 0x260]
call fcn.00402d50
jmp 0x4fb813
push eax
lea eax, [ebp - 0x260]
push 0x56d884
push eax
call fcn.004023f0
add esp, 0xc
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
push 0x2001f
push 0
push ebx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x254], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4fb9cf
mov edi, dword [ebp - 0x254]
push 0x20a
push eax
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x278], edi
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x254], 0x20a
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0x56d8c0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fb8c8
mov eax, dword [ebp - 0x250]
cmp eax, 1
je 0x4fb8ad
cmp eax, 2
jne 0x4fb8c8
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x4fb8e0
test al, 1
jne 0x4fb8c8
shr eax, 1
cmp word [ebp + eax*2 - 0x21e], 0
je 0x4fb8e9
mov byte [ebp - 4], 3
test edi, edi
je 0x4fb9d3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fb9d3
xor eax, eax
mov word [ebp - 0x21c], ax
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fb8f2
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00402d50
push 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x25c]
call fcn.004032e0
mov ecx, 0x56d978
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fb956
test dx, dx
je 0x4fb952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fb956
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fb930
xor eax, eax
jmp 0x4fb95b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x250]
test eax, eax
setne byte [ebp - 0x255]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4fb99d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fb999
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fb99d
mov ecx, edx
call esi
cmp byte [ebp - 0x255], 0
je 0x4fb9b8
push 1
push 0x56d97c
lea ecx, [ebp - 0x25c]
call fcn.00402320
mov byte [ebp - 4], 3
test edi, edi
je 0x4fb9c7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x25c]
jmp 0x4fb9d3
mov byte [ebp - 4], 3
cmp dword [esi - 0xc], 0
jne 0x4fb9ff
mov eax, dword [ebp - 0x26c]
push dword [eax + 0x43c]
lea eax, [ebp - 0x25c]
push str._sAppMarket_
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x25c]
add esp, 0xc
push esi
lea eax, [ebp - 0x268]
push str._sAppMarket.exe
push eax
call fcn.004023f0
xor eax, eax
mov dword [ebp - 0x238], 7
add esp, 0xc
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], eax
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x268]
cmp word [edi], ax
jne 0x4fba5b
xor ecx, ecx
jmp 0x4fba6f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fba60
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x24c]
call fcn.00405040
push str.__from
lea ecx, [ebp - 0x264]
call fcn.00401ff0
mov byte [ebp - 4], 7
mov eax, dword [0x59fc08]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4fbada
cmp dword [0x59fadc], 1
mov edx, 0x56d9c0
mov eax, 0x56d980
cmovne edx, eax
test edx, edx
jne 0x4fbab8
push ecx
push edx
jmp 0x4fbadc
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x250], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbac3
sub ecx, dword [ebp - 0x250]
sar ecx, 1
push ecx
push edx
jmp 0x4fbadc
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00402320
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x254]
call fcn.00401e60
add esp, 4
mov byte [ebp - 4], 8
mov edx, dword [eax]
cmp word [edx], 0
jne 0x4fbb0f
xor ecx, ecx
jmp 0x4fbb33
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x250], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbb20
sub ecx, dword [ebp - 0x250]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.00405040
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov ecx, dword [ebp - 0x254]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4fbb8d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x250], ebx
mov ebx, dword [ebp - 0x260]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fbb85
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fbb8d
mov ecx, edx
call dword [ebp - 0x250]
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x24c]
call fcn.004cdd50
mov ecx, dword [ebp - 0x26c]
push 0x2710
push 0x2710
mov eax, dword [ecx]
mov dword [ecx + 0x400], 0x2710
call dword [eax + 0x1c]
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4fbc0a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x250], ebx
mov ebx, dword [ebp - 0x260]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fbc02
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fbc0a
mov ecx, edx
call dword [ebp - 0x250]
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x4fbc28
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x224], 0
cmp eax, 8
jb 0x4fbc63
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
add ebx, 0xfffffff0
mov dword [ebp - 0x23c], 0
or eax, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4fbcb5
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fbcb3
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fbcb5
call edx
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4fbcee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fbcec
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x4fbcf4
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4fbd24
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fbd22
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x4fbd24
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4fbd5e
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fbd5a
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fbd5e
mov ecx, edx
call esi
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