Function at 0x40ae60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ff98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x42bba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push ecx
push edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40aff6
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x40afe9
cmp dword [ebp - 0x14], ebx
je 0x40afe9
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [ebp - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0040fa90
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.0040fa90
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x14], ebx
jbe 0x40afda
mov edi, edi
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov word [esi], cx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x20]
push edi
mov dword [ebp - 0x30], edx
xor eax, eax
lea edx, [ebp - 0x34]
push edx
push ebx
mov word [edi], ax
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x40afca
mov eax, dword [0x42bb74]
mov edx, dword [eax + 0xc]
mov ecx, 0x42bb74
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x34]
dec eax
mov byte [ebp - 4], 2
jne 0x40b008
mov ecx, dword [ebp + 8]
push edi
push esi
call fcn.0040ad20
mov ecx, eax
call fcn.004041e0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x14]
jb 0x40af40
push edi
call fcn.0040fa9b
push esi
call fcn.0040fa9b
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0040fa9b
push esi
call fcn.0040fa9b
add esp, 8
mov eax, 0xb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret