Function at 0x433b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450dde
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x466340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp dword [ecx + 0x14], 7
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
jbe 0x433b8c
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
or eax, 1
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x433cfc
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, edi
jbe 0x433bb9
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x433ce9
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x433bed
cmp eax, 2
je 0x433bed
cmp eax, 7
jne 0x433ce9
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
inc eax
shr eax, 1
cmp eax, ecx
ja 0x433c0f
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x433c04
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x433c1b
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00420460
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x433c25
mov eax, dword [esi]
cmp dword [edi + 0x14], 7
jbe 0x433c2d
mov edi, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x433cc0
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x433c58
cmp eax, 2
je 0x433c58
cmp eax, 7
jne 0x433cc0
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x433c79
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x433c6e
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x433c85
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00420460
mov eax, dword [esi + 0x10]
test eax, eax
je 0x433cf1
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 7
jbe 0x433c98
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0
jne 0x433cf1
lea ecx, [eax - 1]
mov eax, esi
cmp edx, 7
jbe 0x433cac
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], ecx
mov word [eax + ecx*2], dx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433d07
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x433cd2
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433d07
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x433d07
push 0x3f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d5
mov esp, ebp
pop ebp
ret