Function at 0x4598e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b2cb
mov eax, dword fs:[0]
push eax
sub esp, 0x938
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x930], eax
jb 0x459921
mov ecx, dword [eax]
jmp 0x459923
mov ecx, eax
lea edx, [ebp - 0x920]
push edx
movzx edx, byte [eax + 0x40]
mov eax, dword [eax + 0x1c]
neg edx
sbb edx, edx
and edx, 0x100
or edx, 0x20019
push edx
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x459958
xor al, al
jmp 0x459b9a
push 0x400
lea ecx, [ebp - 0x91c]
push ebx
push ecx
xor esi, esi
mov dword [ebp - 0x92c], 0x105
mov dword [ebp - 0x928], 0x400
call fcn.00469070
add esp, 0xc
lea edx, [ebp - 0x928]
push edx
lea eax, [ebp - 0x91c]
push eax
lea ecx, [ebp - 0x934]
push ecx
mov ecx, dword [ebp - 0x920]
push ebx
lea edx, [ebp - 0x92c]
push edx
lea eax, [ebp - 0x11c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x459a8c
mov edx, dword [ebp - 0x934]
mov eax, dword [ebp - 0x928]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x938], esp
push eax
lea eax, [ebp - 0x91c]
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
inc esi
mov byte [ecx], bl
call fcn.00412da0
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ecx + 0x14], edi
lea eax, [ebp - 0x11c]
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x924], esp
mov byte [ecx], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x459a12
sub eax, edi
push eax
lea edx, [ebp - 0x11c]
push edx
call fcn.00412da0
mov eax, dword [ebp - 0x930]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00459510
lea ecx, [ebp - 0x928]
push ecx
lea edx, [ebp - 0x91c]
push edx
lea eax, [ebp - 0x934]
push eax
mov eax, dword [ebp - 0x920]
push ebx
lea ecx, [ebp - 0x92c]
push ecx
lea edx, [ebp - 0x11c]
push edx
push esi
push eax
mov dword [ebp - 0x92c], 0x105
mov dword [ebp - 0x928], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x4599c0
mov eax, dword [ebp + 0x10]
mov ecx, eax
inc eax
mov dword [ebp + 0x10], eax
cmp ecx, dword [ebp + 0xc]
jge 0x459b8b
push 0x3ff
lea edx, [ebp - 0x51b]
push ebx
push edx
mov byte [ebp - 0x51c], bl
call fcn.00469070
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
mov eax, dword [ebp - 0x920]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x924]
push ecx
lea edx, [ebp - 0x51c]
push edx
push ebx
push eax
mov dword [ebp - 0x924], 0x400
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x459b8b
inc esi
sub esp, 0x1c
mov ecx, esp
lea eax, [ebp - 0x51c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x938], esp
mov byte [ecx], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x459b17
sub eax, edi
push eax
lea edx, [ebp - 0x51c]
push edx
call fcn.00412da0
mov eax, dword [ebp - 0x920]
mov ecx, dword [ebp - 0x930]
push eax
call fcn.00459620
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.004598e0
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
mov eax, dword [ebp - 0x920]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x924]
push ecx
lea edx, [ebp - 0x51c]
push edx
push esi
push eax
mov dword [ebp - 0x924], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x459af6
mov ecx, dword [ebp - 0x920]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret