Function at 0x408b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.00497720
push 0xffffffffffffffff
push 0x4be8ad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x507074]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
cmp dword [ebx + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x34], eax
je 0x408dcd
mov ecx, eax
call fcn.00408e20
xor esi, esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x408da6
mov dword [ebp - 0x10], 0x3fff
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004081f0
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x2c]
push esi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp dword [ebp - 0x24], 1
mov ebx, eax
mov dword [ebp - 0x28], ebx
jne 0x408db6
test ebx, ebx
jne 0x408d8f
mov ebx, dword [ebp - 0x10]
call fcn.004043d0
test eax, eax
je 0x408e0e
mov ecx, dword [eax]
push 2
push ebx
mov edx, dword [ecx]
mov ecx, eax
call edx
test eax, eax
je 0x408e09
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
test ebx, ebx
js 0x408dff
cmp ebx, dword [esi - 8]
jg 0x408dff
mov dword [esi - 0xc], ebx
xor eax, eax
add ebx, ebx
mov word [ebx + esi], ax
test ebx, ebx
je 0x408ce5
test esi, esi
jne 0x408cd7
call fcn.0049ba6d
mov dword [eax], 0x16
call fcn.0049b96f
jmp 0x408ce5
push ebx
lea eax, [ebp]
push eax
push esi
call fcn.00498090
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.004043d0
test eax, eax
je 0x408e0e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push edi
call fcn.00403470
test al, al
jne 0x408d3a
test edi, edi
jne 0x408d1c
xor eax, eax
jmp 0x408d30
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408d21
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.004035e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408f00
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408d6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408d89
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.004969fe
add esp, 4
mov dword [ebp - 0x18], 0
inc esi
mov dword [ebp - 0x20], esi
test ebx, ebx
jne 0x408dd1
mov ebx, dword [ebp - 0x2c]
jmp 0x408bf1
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.004969fe
add esp, 4
mov dword [ebp - 0x18], 0
xor al, al
jmp 0x408dda
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.0049665e
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80070057
call fcn.00402570
call fcn.00402590
push 0x80004005
call fcn.00402570
int3