Function at 0x408be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.00498560
push 0xffffffffffffffff
push 0x4bf9fd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x50a074]
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 0x408e1d
mov ecx, eax
call fcn.00408e70
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 0x408df6
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.00408240
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 0x408e06
test ebx, ebx
jne 0x408ddf
mov ebx, dword [ebp - 0x10]
call fcn.004043d0
test eax, eax
je 0x408e5e
mov ecx, dword [eax]
push 2
push ebx
mov edx, dword [ecx]
mov ecx, eax
call edx
test eax, eax
je 0x408e59
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
test ebx, ebx
js 0x408e4f
cmp ebx, dword [esi - 8]
jg 0x408e4f
mov dword [esi - 0xc], ebx
xor eax, eax
add ebx, ebx
mov word [ebx + esi], ax
test ebx, ebx
je 0x408d35
test esi, esi
jne 0x408d27
call fcn.0049c8ad
mov dword [eax], 0x16
call fcn.0049c7af
jmp 0x408d35
push ebx
lea eax, [ebp]
push eax
push esi
call fcn.00498ed0
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.004043d0
test eax, eax
je 0x408e5e
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 0x408d8a
test edi, edi
jne 0x408d6c
xor eax, eax
jmp 0x408d80
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408d71
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.00408f50
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 0x408dbd
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 0x408dd9
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.0049783f
add esp, 4
mov dword [ebp - 0x18], 0
inc esi
mov dword [ebp - 0x20], esi
test ebx, ebx
jne 0x408e21
mov ebx, dword [ebp - 0x2c]
jmp 0x408c41
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0049783f
add esp, 4
mov dword [ebp - 0x18], 0
xor al, al
jmp 0x408e2a
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.00497376
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80070057
call fcn.00402570
call fcn.00402590
push 0x80004005
call fcn.00402570
int3