Function at 0x417820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4739c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ecx + 4]
mov dword [esi], 0
push esi
push 0x20019
push 0
push dword [ecx]
mov dword [ebp - 0x28], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebx], 0
je 0x41798c
add ebx, 0x10
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x38], ebx
nop dword [eax]
mov eax, dword [ebx - 0xc]
cmp eax, 7
ja case.default.0x41787c
jmp dword [eax*4 + 0x417b20]
movsd xmm0, qword [ebx]
call fcn.00429ba0
mov esi, dword [ebx - 4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push esi
push 0
push 0
push dword [ebx - 0x10]
mov dword [ebp - 0x30], 4
push dword [eax]
call edi
test eax, eax
je 0x417978
mov eax, dword [ebp - 0x38]
mov dword [esi], eax
jmp 0x417978
mov ecx, dword [ebp - 0x38]
cvttsd2si ebx, qword [ebx]
mov dword [ebp - 0x2c], 4
mov esi, dword [ecx - 4]
movzx eax, byte [esi]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0
push dword [ecx - 0x10]
push dword [eax]
call edi
movzx edx, byte [ebp - 0x30]
test eax, eax
movzx ecx, bl
mov ebx, dword [ebp - 0x38]
cmovne edx, ecx
mov byte [esi], dl
jmp 0x417978
mov esi, dword [ebx - 4]
lea eax, [ebp - 0x2c]
movsd xmm0, qword [ebx]
push eax
mov eax, dword [ebp - 0x28]
push esi
push 0
push 0
push dword [ebx - 0x10]
movsd qword [ebp - 0x34], xmm0
push dword [eax]
mov dword [ebp - 0x2c], 8
call edi
test eax, eax
je 0x417978
movsd xmm0, qword [ebp - 0x34]
movsd qword [esi], xmm0
jmp 0x417978
cvttsd2si eax, qword [ebx]
mov edi, dword [ebx - 4]
mov dword [ebp - 0x2c], 4
movzx esi, ax
movsx eax, word [edi]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0
push dword [ebx - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx edx, word [ebp - 0x30]
test eax, eax
mov ecx, esi
cmovne edx, ecx
mov word [edi], dx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x28]
add ebx, 0x18
mov dword [ebp - 0x38], ebx
cmp dword [ebx - 0x10], 0
jne 0x417870
pop edi
mov eax, dword [esi]
pop esi
pop ebx
test eax, eax
je 0x41799b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004297e8
mov esp, ebp
pop ebp
ret 4
movsd xmm0, qword [ebx]
call fcn.00429ba0
mov ecx, dword [ebx - 8]
mov esi, eax
mov eax, dword [ebx - 4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
push 0
push dword [ebx - 0x10]
push dword [eax]
call edi
test eax, eax
je 0x417978
test esi, esi
je 0x417978
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.0043730a
add esp, 0xc
jmp 0x417978
mov eax, dword [ebx - 8]
mov edi, dword [ebx - 4]
shr eax, 2
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
push 0x20019
push 0
push dword [ebx - 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417b14
xor esi, esi
cmp dword [ebp - 0x30], esi
jbe 0x417a5e
mov ebx, dword [ebp - 0x30]
push esi
push 0x45c810
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], 4
push 0x10
push eax
call fcn.00402230
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
push edi
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc esi
add edi, 4
cmp esi, ebx
jb 0x417a22
mov ebx, dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417972
mov eax, dword [ebx - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx - 8]
shr eax, 1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 0x20019
push 0
push dword [ebx - 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne case.default.0x41787c
xor esi, esi
cmp dword [ebp - 0x30], esi
jbe 0x417ae9
mov ebx, dword [ebp - 0x30]
push esi
push 0x45c810
lea eax, [ebp - 0x24]
mov dword [ebp - 0x48], 4
push 0x10
push eax
call fcn.00402230
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x40]
call edi
test eax, eax
jne 0x417ae1
mov ecx, dword [ebp - 0x2c]
mov ax, word [ebp - 0x4c]
mov word [ecx + esi*2], ax
inc esi
cmp esi, ebx
jb 0x417aa2
mov ebx, dword [ebp - 0x38]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417978
mov eax, dword [ebx - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebx - 4]
push 0
push 0
push dword [ebx - 0x10]
push dword [esi]
call edi
jmp case.default.0x41787c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp case.default.0x41787c