Function at 0x409270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004a2cb0
push 0xffffffffffffffff
push 0x4ca115
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x515080]
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 0x4094a4
mov ecx, eax
call fcn.004094c0
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 0x409453
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.00408760
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 0x40948d
test edi, edi
jne 0x409436
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
call fcn.00409c10
mov byte [ebp - 4], 1
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x4094a8
mov ecx, dword [ebx]
mov edi, dword [ecx + 0xc]
mov ecx, edi
call dword [0x4e2514]
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 0x4093c9
test esi, esi
jne 0x4093aa
xor eax, eax
jmp 0x4093bf
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093b0
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.004095f0
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 0x409408
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e2514]
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 0x409433
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e2514]
mov ecx, ebx
call edi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a1f62
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 0x4092d1
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.004a1bc0
lea esp, [ebp + 0x8004]
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a1f62
add esp, 4
mov dword [ebp - 0x18], 0
xor al, al
jmp 0x409468
push 0x80004005
call fcn.00402720
int3