Function at 0x463650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fb74
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x4be5b4]
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 eax, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x82c], edi
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x824], edi
cmp dword [ebp + 0x14], edi
mov eax, 0x200
mov ebx, 0x100
mov dword [ebp - 4], edi
cmovne eax, ebx
or eax, 0x20019
push eax
push ecx
push edx
lea ecx, [ebp - 0x82c]
call fcn.0040f4c0
mov ebx, dword [ebp - 0x82c]
test eax, eax
jne 0x463919
push 0x800
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x814], 0x800
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x820]
push eax
push edi
push dword [ebp - 0x818]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x463919
mov eax, dword [ebp - 0x820]
cmp eax, 1
je 0x463740
cmp eax, 2
jne 0x463919
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x463767
test cl, 1
jne 0x463919
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x463770
jmp 0x463919
xor eax, eax
mov word [ebp - 0x810], ax
shr ecx, 1
je 0x463919
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x463944
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test esi, esi
je 0x46389a
cmp esi, 0x482aa0
je 0x46389a
push esi
lea ecx, [ebp - 0x81c]
call fcn.00403f50
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x838]
call fcn.00403f50
push 0x483fd8
push eax
lea eax, [ebp - 0x834]
mov byte [ebp - 4], 3
push eax
call fcn.00404d40
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x46380b
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x463821
call fcn.0040b4c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x46394e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0x830], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x818]
push ecx
push eax
call fcn.0044fd60
add esp, 0x14
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x814]
push eax
call fcn.00404c60
lea ecx, [ebp - 0x818]
call fcn.00404460
lea ecx, [ebp - 0x834]
call fcn.00404460
lea ecx, [ebp - 0x838]
call fcn.00404460
lea ecx, [ebp - 0x81c]
call fcn.00404460
jmp 0x4638dd
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00403f50
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 6
call fcn.00404c60
mov edx, dword [ebp - 0x81c]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4638dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x83c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov byte [ebp - 4], 0
mov ecx, 1
cmovne edi, ecx
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x463913
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x82c]
test ebx, ebx
je 0x463924
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.0042c75e
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
int3