Function at 0x450b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ecx + 4]
push eax
push 0x20019
push 0
push dword [ecx]
mov dword [ebp - 0x30], eax
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x450f6a
cmp dword [edi], eax
je 0x450e22
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add edi, 0x10
push esi
mov dword [ebp - 0x2c], edi
nop dword [eax]
mov esi, dword [edi - 0xc]
mov dword [ebp - 0x34], esi
cmp esi, 9
ja case.default.0x450bdf
jmp dword [esi*4 + 0x450f80]
movsd xmm0, qword [edi]
call fcn.004c3bc0
mov esi, dword [edi - 4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x30]
push esi
push 0
push 0
push dword [edi - 0x10]
mov dword [ebp - 0x28], 4
push dword [eax]
call ebx
test eax, eax
je case.default.0x450bdf
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
jmp case.default.0x450bdf
mov esi, dword [edi - 4]
cvttsd2si ebx, qword [edi]
mov dword [ebp - 0x28], 4
movzx eax, byte [esi]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push 0
push 0
push dword [edi - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx edx, byte [ebp - 0x2c]
test eax, eax
movzx ecx, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmovne edx, ecx
mov byte [esi], dl
jmp case.default.0x450bdf
mov esi, dword [edi - 4]
lea eax, [ebp - 0x28]
movsd xmm0, qword [edi]
push eax
mov eax, dword [ebp - 0x30]
push esi
push 0
push 0
push dword [edi - 0x10]
movsd qword [ebp - 0x38], xmm0
push dword [eax]
mov dword [ebp - 0x28], 8
call ebx
test eax, eax
je case.default.0x450bdf
movsd xmm0, qword [ebp - 0x38]
movsd qword [esi], xmm0
jmp case.default.0x450bdf
cvttsd2si eax, qword [edi]
mov dword [ebp - 0x4c], 4
movzx eax, ax
mov dword [ebp - 0x34], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x2c], eax
movsx eax, word [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x30]
push 0
push 0
push dword [edi - 0x10]
push dword [eax]
call ebx
test eax, eax
je 0x450ce9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov word [eax], cx
movzx eax, cx
jmp 0x450cf5
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov word [ecx], ax
movzx eax, ax
cmp esi, 3
jne case.default.0x450bdf
push 0x60
push dword [0x5408ec]
cwde
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x450d25
mov ecx, dword [ebp - 0x2c]
mov eax, 0xffff8001
mov word [ecx], ax
jmp case.default.0x450bdf
cmp eax, 0x7fff
jle 0x450d3c
mov ecx, dword [ebp - 0x2c]
mov eax, 0x7fff
mov word [ecx], ax
jmp case.default.0x450bdf
mov ecx, dword [ebp - 0x2c]
movzx eax, ax
mov word [ecx], ax
jmp case.default.0x450bdf
movsd xmm0, qword [edi]
call fcn.004c3bc0
mov ecx, dword [edi - 8]
mov esi, eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
push 0
push dword [edi - 0x10]
push dword [eax]
call ebx
test eax, eax
je case.default.0x450bdf
test esi, esi
je case.default.0x450bdf
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call fcn.004c905a
add esp, 0xc
jmp case.default.0x450bdf
mov ecx, dword [ebp - 0x2c]
mov edi, dword [edi - 4]
mov eax, dword [ecx - 8]
shr eax, 2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x30]
push 0x20019
push 0
push dword [ecx - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x450e0d
xor esi, esi
cmp dword [ebp - 0x28], esi
jbe 0x450e04
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], 4
push 0x503b24
push eax
call fcn.0044c5c0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push edi
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x48]
call ebx
inc esi
add edi, 4
cmp esi, dword [ebp - 0x28]
jb 0x450dd0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x2c]
add edi, 0x18
mov dword [ebp - 0x2c], edi
cmp dword [edi - 0x10], 0
jne 0x450bd0
pop esi
pop ebx
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c3287
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi - 4]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [edi - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x30]
push 0x20019
push 0
push dword [ecx - 0x10]
shr edi, 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x450e0d
xor esi, esi
test edi, edi
je 0x450f42
cmp dword [ebp - 0x34], 7
jne 0x450ef6
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], 4
push 0x503b24
push eax
call fcn.0044c5c0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x44]
call ebx
test eax, eax
jne 0x450ee9
push 0x60
push dword [0x5408ec]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x450ed1
mov eax, 0xffff8001
jmp 0x450ee2
cmp eax, 0x7fff
jle 0x450edf
mov eax, 0x7fff
jmp 0x450ee2
movzx eax, ax
mov ecx, dword [ebp - 0x28]
mov word [ecx + esi*2], ax
inc esi
cmp esi, edi
jb 0x450e80
push dword [ebp - 0x44]
jmp 0x450e07
xor esi, esi
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], 4
push 0x503b24
push eax
call fcn.0044c5c0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x44]
call ebx
test eax, eax
jne 0x450f3d
mov ecx, dword [ebp - 0x28]
mov ax, word [ebp - 0x40]
mov word [ecx + esi*2], ax
inc esi
cmp esi, edi
jb 0x450f00
push dword [ebp - 0x44]
jmp 0x450e07
mov eax, dword [edi - 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push dword [edi - 4]
mov eax, dword [ebp - 0x30]
push 0
push 0
push dword [edi - 0x10]
push dword [eax]
call ebx
jmp case.default.0x450bdf
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop edi
call fcn.004c3287
mov esp, ebp
pop ebp
ret 4