Function at 0x40bcb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x4ca]
push edx
mov dword [ebp - 0x8dc], eax
mov byte [ebp - 0x8cd], 0
mov word [ebp - 0x4cc], cx
call fcn.0049eae0
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x8ca]
push ecx
mov word [ebp - 0x8cc], ax
call fcn.0049eae0
xor edx, edx
push 0xc6
push edx
lea eax, [ebp - 0xca]
push eax
mov dword [ebp - 0x8d4], 0
mov word [ebp - 0xcc], dx
call fcn.0049eae0
add esp, 0x24
mov dword [ebp - 0x8e0], 0x64
mov dword [ebp - 0x8d8], 1
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.BackwardsCompatibleToVersion]
mov word [ebp + eax - 0x8cc], cx
add eax, 2
test cx, cx
jne 0x40bd50
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x4cc], cx
add eax, 2
test cx, cx
jne 0x40bd70
lea eax, [esi + 0x1008]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bd90
push edi
lea edi, [ebp - 0x4cc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40bdb0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40bdb0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x4cc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40bdd5
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x4cc]
mov dword [edi], edx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40bdf2
mov ecx, dword [0x4d3364]
mov dword [eax], ecx
mov ecx, dword [0x4d3368]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3370]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4d3374]
lea edi, [ebp - 0x4cc]
mov dword [eax + 0x10], ecx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40be33
mov eax, ebx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be45
lea edi, [ebp - 0x4cc]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40be60
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40be60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x8d4]
push edx
push 1
mov ecx, eax
push 0
lea eax, [ebp - 0x4cc]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x40bef3
lea ecx, [ebp - 0x8e0]
push ecx
lea edx, [ebp - 0xcc]
push edx
mov edx, dword [ebp - 0x8d4]
lea eax, [ebp - 0x8d8]
push eax
push 0
lea ecx, [ebp - 0x8cc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bef3
mov edx, dword [ebp - 0x8dc]
lea eax, [ebp - 0xcc]
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40bee0
mov bl, 1
jmp 0x40bef9
mov bl, byte [ebp - 0x8cd]
mov edx, dword [ebp - 0x8d4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 8