Function at 0x409050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004a1d20
push 0xffffffffffffffff
push 0x4c9075
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 0x409284
mov ecx, eax
call fcn.004092a0
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 0x409233
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.00408550
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 0x40926d
test edi, edi
jne 0x409216
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
call fcn.004099f0
mov byte [ebp - 4], 1
call fcn.00404710
mov ebx, eax
test ebx, ebx
je 0x409288
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.00403720
test al, al
jne 0x4091a9
test esi, esi
jne 0x40918a
xor eax, eax
jmp 0x40919f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409190
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004038b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004093d0
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 0x4091e8
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 0x409213
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.004a0fd2
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 0x4090b1
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.004a0c30
lea esp, [ebp + 0x8004]
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a0fd2
add esp, 4
mov dword [ebp - 0x18], 0
xor al, al
jmp 0x409248
push 0x80004005
call fcn.00402740
int3