Function at 0x451e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525444
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x572374]
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 edx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x830], edi
cmp dword [ebp + 0x14], edi
mov edx, 0x100
mov esi, 0x200
mov dword [ebp - 4], edi
cmovne esi, edx
mov dword [ebp - 0x814], edi
lea edx, [ebp - 0x814]
or esi, 0x20019
push edx
push esi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x452176
mov ebx, dword [ebp - 0x814]
and esi, 0x300
push 0x800
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x838], ebx
push eax
mov dword [ebp - 0x834], esi
call fcn.004a9b50
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 0x45216b
mov eax, dword [ebp - 0x820]
cmp eax, 1
je 0x451f92
cmp eax, 2
jne 0x45216b
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x451fb9
test cl, 1
jne 0x45216b
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x451fc2
jmp 0x45216b
xor eax, eax
mov word [ebp - 0x810], ax
shr ecx, 1
je 0x45216b
call fcn.004064e0
mov ecx, eax
test ecx, ecx
je 0x452196
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x824]
mov byte [ebp - 4], 1
test eax, eax
je 0x4520ee
cmp eax, 0x532a5c
je 0x4520ee
push eax
lea ecx, [ebp - 0x81c]
call fcn.004052c0
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x82c]
call fcn.004052c0
push 0x532910
push eax
lea eax, [ebp - 0x820]
mov byte [ebp - 4], 3
push eax
call fcn.004221d0
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x45205f
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x452075
call fcn.004064e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4521a0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x828], 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.004226d0
add esp, 0x14
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x814]
push eax
call fcn.00405610
lea ecx, [ebp - 0x818]
call fcn.004054b0
lea ecx, [ebp - 0x820]
call fcn.004054b0
lea ecx, [ebp - 0x82c]
call fcn.004054b0
lea ecx, [ebp - 0x81c]
call fcn.004054b0
jmp 0x452132
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.004052c0
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 6
call fcn.00405610
mov edx, dword [ebp - 0x81c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x452132
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
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45216b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x452176
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.0047d268
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00405c70
push 0x80004005
call fcn.00405c70
int3