Function at 0x451d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522984
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x570374]
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 0x452076
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.004a8eb0
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 0x45206b
mov eax, dword [ebp - 0x820]
cmp eax, 1
je 0x451e92
cmp eax, 2
jne 0x45206b
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x451eb9
test cl, 1
jne 0x45206b
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x451ec2
jmp 0x45206b
xor eax, eax
mov word [ebp - 0x810], ax
shr ecx, 1
je 0x45206b
call fcn.004064b0
mov ecx, eax
test ecx, ecx
je 0x452096
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 0x451fee
cmp eax, 0x52f8f4
je 0x451fee
push eax
lea ecx, [ebp - 0x81c]
call fcn.00405290
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x82c]
call fcn.00405290
push 0x52f7ac
push eax
lea eax, [ebp - 0x820]
mov byte [ebp - 4], 3
push eax
call fcn.004221b0
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x451f5f
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x451f75
call fcn.004064b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4520a0
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.004226b0
add esp, 0x14
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x814]
push eax
call fcn.004055e0
lea ecx, [ebp - 0x818]
call fcn.00405480
lea ecx, [ebp - 0x820]
call fcn.00405480
lea ecx, [ebp - 0x82c]
call fcn.00405480
lea ecx, [ebp - 0x81c]
call fcn.00405480
jmp 0x452032
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.00405290
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 6
call fcn.004055e0
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 0x452032
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 0x45206b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x452076
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.0047c5a8
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00405c40
push 0x80004005
call fcn.00405c40
int3