Function at 0x40e479
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4381aa
call fcn.0042c6e0
sub esp, 0xc84
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [ebp - 0x20], esi
je 0x40e4a2
push dword [ebp + 0xc]
call fcn.00402cdc
cmp dword [esi + 0x68], 0x10
jb 0x40e4ad
mov eax, dword [esi + 0x54]
jmp 0x40e4b0
lea eax, [esi + 0x54]
push eax
push dword [ebp + 0xc]
call fcn.0042af4d
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
neg esi
lea eax, [ebp - 0x490]
sbb esi, esi
push eax
inc esi
mov edi, 0x400
mov dword [ebp - 0x10], ebx
push ebx
jmp 0x40e5b5
cmp esi, ebx
je 0x40e525
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x84], 0x10
jb 0x40e500
mov eax, dword [eax + 0x70]
jmp 0x40e503
add eax, 0x70
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.00429f40
test eax, eax
pop ecx
pop ecx
jne 0x40e525
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x890]
push eax
call fcn.00402cdc
cmp dword [ebp + 0x14], ebx
je 0x40e594
lea eax, [ebp - 0x54]
push eax
call fcn.0040e6ac
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.00402cdc
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0xf]
lea edx, [ebp - 0x34]
mov byte [ebp + 0xf], bl
call fcn.0040eea2
push dword [ebp - 0x14]
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x30]
call fcn.0042a7d0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x1c
call fcn.0040edae
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x54]
call fcn.0040e6df
mov edi, 0x400
inc dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x490]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40e4eb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc90]
push eax
mov dword [ebp - 0x10], ebx
push ebx
jmp 0x40e688
lea eax, [ebp - 0x90]
push eax
call fcn.0040e075
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc90]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e663
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x90]
and eax, ecx
mov ecx, dword [ebp - 0x20]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc90]
push eax
push dword [ebp + 0xc]
call fcn.0040e479
test eax, eax
je 0x40e65a
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x40e65a
lea ecx, [ebp - 0x90]
push ecx
add eax, 0x2c
call fcn.0040edf2
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x90]
push eax
call fcn.0040e0b1
inc dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc90]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
call esi
test eax, eax
je 0x40e5ee
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10