Function at 0x450430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x535a40]
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 0x450820
cmp dword [edi], eax
je 0x4506cf
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add edi, 0x10
push esi
mov dword [ebp - 0x28], edi
nop dword [eax]
mov esi, dword [edi - 0xc]
mov dword [ebp - 0x34], esi
cmp esi, 9
ja case.default.0x45048f
jmp dword [esi*4 + 0x450834]
movsd xmm0, qword [edi]
call fcn.004c3cc0
mov esi, dword [edi - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push esi
push 0
push 0
push dword [edi - 0x10]
mov dword [ebp - 0x2c], 4
push dword [eax]
call ebx
test eax, eax
je case.default.0x45048f
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
jmp case.default.0x45048f
mov esi, dword [edi - 4]
cvttsd2si ebx, qword [edi]
mov dword [ebp - 0x2c], 4
movzx eax, byte [esi]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
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 dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx edx, byte [ebp - 0x28]
test eax, eax
movzx ecx, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmovne edx, ecx
mov byte [esi], dl
jmp case.default.0x45048f
mov esi, dword [edi - 4]
lea eax, [ebp - 0x2c]
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 - 0x2c], 8
call ebx
test eax, eax
je case.default.0x45048f
movsd xmm0, qword [ebp - 0x38]
movsd qword [esi], xmm0
jmp case.default.0x45048f
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 - 0x28], eax
movsx eax, word [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
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 ebx
test eax, eax
je 0x450599
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov word [eax], cx
movzx eax, cx
jmp 0x4505a5
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov word [ecx], ax
movzx eax, ax
cmp esi, 3
jne case.default.0x45048f
push 0x60
push dword [0x53a8bc]
cwde
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x4505d5
mov ecx, dword [ebp - 0x28]
mov eax, 0xffff8001
mov word [ecx], ax
jmp case.default.0x45048f
cmp eax, 0x7fff
jle 0x4505ec
mov ecx, dword [ebp - 0x28]
mov eax, 0x7fff
mov word [ecx], ax
jmp case.default.0x45048f
mov ecx, dword [ebp - 0x28]
movzx eax, ax
mov word [ecx], ax
jmp case.default.0x45048f
movsd xmm0, qword [edi]
call fcn.004c3cc0
mov ecx, dword [edi - 8]
mov esi, eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
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.0x45048f
test esi, esi
je case.default.0x45048f
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call fcn.004c913a
add esp, 0xc
jmp case.default.0x45048f
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
mov edi, dword [edi - 4]
push ecx
push 0x20019
mov ebx, dword [eax - 8]
push 0
push dword [eax - 0x10]
mov eax, dword [ebp - 0x30]
shr ebx, 2
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4506b4
xor esi, esi
test ebx, ebx
je 0x4506ab
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], 4
push 0x501b2c
push eax
call fcn.0044bdd0
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 dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc esi
add edi, 4
cmp esi, ebx
jb 0x450674
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0x28]
add edi, 0x18
mov dword [ebp - 0x28], edi
cmp dword [edi - 0x10], 0
jne 0x450480
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.004c34b7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi - 4]
mov edi, dword [edi - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x28]
push 0x20019
push 0
shr edi, 1
push dword [eax - 0x10]
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4506ba
xor esi, esi
test edi, edi
je 0x4507f2
cmp dword [ebp - 0x34], 7
jne 0x4507ac
nop dword [eax]
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], 4
push 0x501b2c
push eax
call fcn.0044bdd0
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 0x450799
push 0x60
push dword [0x53a8bc]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x450781
mov eax, 0xffff8001
jmp 0x450792
cmp eax, 0x7fff
jle 0x45078f
mov eax, 0x7fff
jmp 0x450792
movzx eax, ax
mov ecx, dword [ebp - 0x2c]
mov word [ecx + esi*2], ax
inc esi
cmp esi, edi
jb 0x450730
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4506ba
xor esi, esi
nop
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], 4
push 0x501b2c
push eax
call fcn.0044bdd0
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 0x4507ed
mov ecx, dword [ebp - 0x2c]
mov ax, word [ebp - 0x40]
mov word [ecx + esi*2], ax
inc esi
cmp esi, edi
jb 0x4507b0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4506ba
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.0x45048f
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop edi
call fcn.004c34b7
mov esp, ebp
pop ebp
ret 4