Function at 0x40d690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4227ee
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x94], esi
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], 0
call fcn.0040da60
test al, al
jne 0x40d700
mov dword [ebx], 0
mov eax, ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x40da37
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0
xor edi, edi
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x7c], 0x3fff
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
push 0x3fff
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040ea50
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x84]
push ecx
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
push ecx
push ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x84], ebx
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x80], ebx
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x40d950
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40d8b1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040ee90
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x84]
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x7c], 0x3fff
push ecx
push esi
lea ecx, [ebp - 0x7c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x94]
push edi
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp - 0x7c]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x40d824
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40d831
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ea50
test esi, esi
jne 0x40d9ee
xor eax, eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], esi
mov word [ebp - 0x50], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x50]
call fcn.00401eb0
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040c2b0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040ece0
lea ecx, [ebp - 0x34]
call fcn.0040e900
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x40d8a6
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00401d90
mov ebx, dword [ebp - 0x90]
jmp 0x40d961
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x40d8d1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40d8de
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ea50
xor eax, eax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x78]
call fcn.00401eb0
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x84]
mov dword [ebp - 0x60], eax
call fcn.0040ee90
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040ece0
lea ecx, [ebp - 0x5c]
call fcn.0040e900
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x40d961
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00401d90
jmp 0x40d961
cmp esi, 5
je 0x40d961
cmp esi, 0x103
jne 0x40d9ee
mov byte [ebp - 4], 1
test ebx, ebx
je 0x40d9c1
mov eax, dword [ebp - 0x88]
sub eax, ebx
cmp eax, 0x1000
jb 0x40d99a
test bl, 0x1f
jne 0x40da10
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x40da10
sub ebx, eax
cmp ebx, 4
jb 0x40da10
cmp ebx, 0x23
ja 0x40da10
mov ebx, eax
push ebx
call fcn.0040a239
add esp, 4
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40d9da
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401d90
inc edi
cmp esi, 0x103
je 0x40da15
mov esi, dword [ebp - 0x94]
jmp 0x40d730
push esi
push str.RegEnumValue_failed.
lea ecx, [ebp - 0xc0]
call fcn.0040f040
push 0x431fb8
lea eax, [ebp - 0xc0]
push eax
call fcn.00411cd4
call fcn.00413371
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x9c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [ecx + 8], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a23e
mov esp, ebp
pop ebp
ret 8