Function at 0x4094c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004d4f20
push 0xffffffffffffffff
push 0x4ff575
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x569080]
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 - 0x30], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x34], eax
je 0x409704
mov ecx, eax
call fcn.00409720
xor ebx, ebx
mov dword [ebp - 0x20], ebx
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 ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x4096b3
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.00408a70
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x30]
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp dword [ebp - 0x24], 1
mov edi, eax
mov dword [ebp - 0x2c], edi
jne 0x4096ed
test edi, edi
jne 0x409699
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409e70
mov byte [ebp - 4], 1
call fcn.004047f0
mov ebx, eax
test ebx, ebx
je 0x409708
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x409603
test esi, 0xffff0000
jne 0x4095ff
movzx eax, si
lea ecx, [ebp - 0x14]
push eax
call fcn.004043d0
jmp 0x409629
test esi, esi
jne 0x409607
xor eax, eax
jmp 0x40961f
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409610
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00403870
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409850
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 0x409668
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x409693
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x525578]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004d4092
mov esi, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x18], 0
inc ebx
mov dword [ebp - 0x20], ebx
test edi, edi
je 0x409521
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.004d3ce9
lea esp, [ebp + 0x8004]
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x18], 0
xor al, al
jmp 0x4096c8
push 0x80004005
call fcn.004027d0
int3