Function at 0x45b3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4827c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ade78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x1fffff
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 1
je 0x45b48b
push 0x4918d4
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402d20
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00402970
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45b48b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x4adbb8]
mov ecx, 0x4adbb8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.0045a3f0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.00402c60
add esp, 0x18
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00402970
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45b4f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45b512
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45b575
mov edx, dword [0x4af2c0]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 6
idiv ecx
cmp edx, 1
jne 0x45b625
mov edi, edx
mov eax, edi
mov edx, 0xe4
lea ebx, [ebx]
dec edx
lea ecx, [eax + edi]
lea edi, [eax]
mov eax, ecx
jns 0x45b560
mov dword [0x4af2c0], ecx
jmp 0x45b625
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45b598
push dword [ebp - 0x14]
jmp 0x45b5a0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
push eax
call fcn.004601e0
add esp, 4
mov edi, eax
push dword [ebp - 0x14]
push 0
push edi
call fcn.00462e00
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x45b603
mov ecx, dword [ebp - 0x14]
mov byte [edi + ecx], al
test edi, edi
jne 0x45b5e6
xor ecx, ecx
jmp 0x45b5f9
mov ecx, edi
lea edx, [ecx + 1]
jmp 0x45b5f0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45b5f0
sub ecx, edx
push ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00408620
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0046208f
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x45b625
cmp dword [ebp - 0x24], 1
mov byte [ebp - 0xd], 1
je 0x45b629
mov byte [ebp - 0xd], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45b646
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45b666
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x45b687
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret