Function at 0x40ca00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4bf6bc]
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
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x48], ax
push 0x37
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.00408600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
push ecx
mov ecx, esi
call fcn.0040a390
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, edi
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x40ca77
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00409c50
push ebx
xor edx, edx
push eax
mov esi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00407860
mov byte [ebp - 4], 4
mov edi, 8
cmp dword [ebp - 0x50], edi
jb 0x40cac6
mov eax, dword [ebp - 0x64]
push eax
call fcn.0047bd91
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], edi
jb 0x40cae7
mov edx, dword [ebp - 0x48]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x18], edi
jae 0x40cafe
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
mov dword [ebp - 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40cbc3
mov edi, dword [ebp - 0x68]
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push ebx
mov dword [ebp - 0x74], edi
push str.Flags
mov dword [ebp - 0x70], ebx
push edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x40cb56
mov esi, eax
jmp 0x40cb63
mov esi, dword [ebp - 0x7c]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
cmp edi, ebx
je 0x40cb73
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], ebx
mov edi, ebx
mov dword [ebp - 0x70], ebx
cmp esi, ebx
jne 0x40cbc8
mov edx, dword [ebp - 0x68]
and edx, 1
cmp dl, 1
jne 0x40cbc8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x40cb9a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047bd91
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x40cbbf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], ebx
xor al, al
jmp 0x40cc05
mov edi, dword [ebp - 0x74]
jmp 0x40cbcd
mov esi, 7
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x40cbe2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x40cc03
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x74], ebx
mov al, 1
mov dword [ebp - 0x70], ebx
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.0047bd9c
mov esp, ebp
pop ebp
ret