Function at 0x409030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004a2640
push 0xffffffffffffffff
push 0x4c9995
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x514080]
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 esi, ecx
mov dword [ebp - 0x2c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x34], eax
je 0x409264
mov ecx, eax
call fcn.00409280
xor ebx, ebx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x409213
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.00408530
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x2c]
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp dword [ebp - 0x20], 1
mov edi, eax
mov dword [ebp - 0x28], edi
jne 0x40924d
test edi, edi
jne 0x4091f6
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
call fcn.004099d0
mov byte [ebp - 4], 1
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x409268
mov ecx, dword [ebx]
mov edi, dword [ecx + 0xc]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push esi
call fcn.00403700
test al, al
jne 0x409189
test esi, esi
jne 0x40916a
xor eax, eax
jmp 0x40917f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409170
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00403890
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004093b0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4091c8
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4091f3
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a18f2
mov ebx, dword [ebp - 0x30]
add esp, 4
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
inc ebx
mov dword [ebp - 0x30], ebx
test edi, edi
je 0x409091
cmp edi, 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.004a1550
lea esp, [ebp + 0x8004]
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x18], 0
xor al, al
jmp 0x409228
push 0x80004005
call fcn.00402720
int3