Function at 0x40be70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42ee7f
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4490c0]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4490c0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfc]
mov ebx, dword [esp + 0xf8]
mov esi, dword [esp + 0x100]
mov edi, dword [esp + 0x104]
mov ebp, ecx
push str.Registry::ReadValue
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.00401d59
push str.Registry
lea ecx, [esp + 0x68]
mov dword [esp + 0xf4], 0
call fcn.00401d59
push 0x20
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xfc], 1
call fcn.0040ad10
cmp dword [esp + 0x7c], 0x10
jb 0x40bf28
mov eax, dword [esp + 0x68]
push eax
call fcn.00413f2a
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0xf0], 4
jb 0x40bf59
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00413f2a
add esp, 4
mov edx, dword [esp + 0x1c]
push esi
push edx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Params:_root:_s__key:_s__valueneme:_s
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
call fcn.00401d59
lea eax, [esp + 0xa8]
push 0x20
push eax
call fcn.0040b0e0
mov ecx, dword [esp + 0x4c]
add esp, 0x30
push 0x20019
push ecx
push ebx
mov ecx, ebp
call fcn.0040ba00
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x1c], ebx
jne 0x40c017
push str.false
lea ecx, [esp + 0x30]
call fcn.00401d59
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x84]
mov byte [esp + 0xf4], 5
call fcn.00408b50
cmp dword [esp + 0x44], 0x10
jb 0x40bff9
mov eax, dword [esp + 0x30]
push eax
call fcn.00413f2a
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0xf0], 0xffffffff
call fcn.0040af00
xor al, al
jmp 0x40c21e
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
push esi
push ebx
mov dword [ebp + 0x48], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x2f], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x40c1a0
push eax
call fcn.004162bd
mov edx, dword [esp + 0x1c]
push edx
mov ebx, eax
push 0
push ebx
call fcn.004157e0
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [ebp + 0x48], eax
jne 0x40c16c
mov eax, dword [esp + 0x20]
add eax, 0xffffffff
cmp eax, 6
ja case.0x40c08b.2
jmp dword [eax*4 + 0x40c248]
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [edi], 1
mov byte [esp + 0x17], 1
jmp 0x40c193
push ebx
lea ecx, [edi + 8]
call fcn.00401c76
mov dword [edi], 2
mov byte [esp + 0x17], 1
jmp 0x40c193
push ebx
lea ecx, [edi + 8]
call fcn.00401c76
mov dword [edi], 3
mov byte [esp + 0x17], 1
jmp 0x40c193
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [edi + 0x24]
push edx
push ebx
mov ecx, ebp
call fcn.0040bd90
mov dword [edi], 5
mov byte [esp + 0x17], 1
jmp 0x40c193
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push str.Registry::ReadValue
mov dword [edi], 0
call fcn.00401d59
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push str..Registry.cpp
mov byte [esp + 0x12c], 6
call fcn.00401d59
push 0xc9
mov ecx, 0x44af08
mov byte [esp + 0x12c], 4
call fcn.004089c0
mov eax, dword [esp + 0x20]
push eax
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push str.registry_entry__s_had_unsupported_data_type__d
call fcn.00401d59
push 0x20
push 0x44af08
call fcn.0040ab20
jmp 0x40c190
push eax
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Failed:RegQueryValueEx__s.__rc:_d
call fcn.00401d59
lea ecx, [esp + 0xa4]
push 0
push ecx
call fcn.0040b0e0
add esp, 0x2c
push ebx
call fcn.0041622a
mov ebx, dword [esp + 0x20]
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [esp + 0x17]
test bl, bl
mov eax, str.true
jne 0x40c1b9
mov eax, str.false
push eax
lea ecx, [esp + 0x30]
call fcn.00401d59
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x84]
mov byte [esp + 0xf4], 7
call fcn.00408b50
cmp dword [esp + 0x44], 0x10
jb 0x40c1f0
mov eax, dword [esp + 0x30]
push eax
call fcn.00413f2a
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0xf0], 0xffffffff
call fcn.0040af00
mov al, bl
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004157c8
add esp, 0xe0
ret 0x10