Function at 0x40be00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x118
lea ebp, [esp - 4]
mov eax, dword [0x4650e0]
xor eax, ebp
mov dword [ebp + 0x118], eax
push 0xb0
mov eax, 0x4513a0
call fcn.0042fb3d
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 2
call fcn.00403721
lea eax, [ebp + 0x124]
push eax
lea esi, [ebp - 0x68]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004026e4
push 7
pop eax
xor ecx, ecx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0xdc], eax
mov dword [ebp + 0xd8], ebx
mov word [ebp + 0xc8], cx
mov dword [ebp + 0x114], eax
xor eax, eax
mov dword [ebp + 0x110], ebx
mov word [ebp + 0x100], ax
mov eax, esi
push eax
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004026e4
push str.HKEY_CLASSES_ROOT
lea esi, [ebp + 0x70]
mov byte [ebp - 4], 6
call fcn.0040217f
push str.HKEY_CURRENT_USER
lea esi, [ebp + 0x1c]
mov byte [ebp - 4], 7
call fcn.0040217f
push str.HKEY_LOCAL_MACHINE
lea esi, [ebp]
mov byte [ebp - 4], 8
call fcn.0040217f
push str.HKEY_USERS
lea esi, [ebp + 0x38]
mov byte [ebp - 4], 9
call fcn.0040217f
push str.HKEY_PERFORMANCE_DATA
lea esi, [ebp + 0x54]
mov byte [ebp - 4], 0xa
call fcn.0040217f
push str.HKEY_CURRENT_CONFIG
lea esi, [ebp + 0x8c]
mov byte [ebp - 4], 0xb
call fcn.0040217f
push str.HKEY_DYN_DATA
lea esi, [ebp + 0xa8]
mov byte [ebp - 4], 0xc
call fcn.0040217f
push 0x5c
pop edi
lea eax, [ebp - 0x18]
push 1
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - 0x18], edi
xor eax, eax
lea ecx, [ebp - 0x4c]
call fcn.004041ea
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp + 0xe0]
call fcn.004037a0
push 1
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xe
xor eax, eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], edi
call fcn.004041ea
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x84]
call fcn.004037a0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.00402658
push ebx
push 1
mov byte [ebp - 4], 0xe
call fcn.0040273f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], edi
call fcn.004037ce
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0xa0]
call fcn.004037a0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xfc]
mov byte [ebp - 4], 0x10
call fcn.00402658
push ebx
push 1
mov byte [ebp - 4], 0xe
call fcn.0040273f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], edi
call fcn.004037ce
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0xbc]
call fcn.004037a0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0x11
call fcn.00402658
push ebx
push 1
mov byte [ebp - 4], 0xe
call fcn.0040273f
lea ecx, [ebp + 0xe0]
lea eax, [ebp + 0x70]
call fcn.00404545
mov edi, SysReAllocString
test al, al
je 0x40c02c
mov dword [ebp - 0x10], SysStringLen
jmp 0x40c0d1
lea ecx, [ebp + 0xe0]
lea eax, [ebp + 0x1c]
call fcn.00404545
test al, al
je 0x40c046
mov dword [ebp - 0x10], edi
jmp 0x40c0d1
lea ecx, [ebp + 0xe0]
lea eax, [ebp]
call fcn.00404545
test al, al
je 0x40c061
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40c0d1
lea ecx, [ebp + 0xe0]
lea eax, [ebp + 0x38]
call fcn.00404545
test al, al
je 0x40c07c
mov dword [ebp - 0x10], SysStringLen
jmp 0x40c0d1
lea ecx, [ebp + 0xe0]
lea eax, [ebp + 0x54]
call fcn.00404545
test al, al
je 0x40c097
mov dword [ebp - 0x10], SysStringLen
jmp 0x40c0d1
lea ecx, [ebp + 0xe0]
lea eax, [ebp + 0x8c]
call fcn.00404545
test al, al
je 0x40c0b5
mov dword [ebp - 0x10], SysStringLen
jmp 0x40c0d1
lea ecx, [ebp + 0xe0]
lea eax, [ebp + 0xa8]
call fcn.00404545
test al, al
je 0x40c0d1
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysStringLen
push ebx
push 1
lea esi, [ebp + 0xe0]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp + 0xa8]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp + 0x8c]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp + 0x54]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp + 0x38]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp + 0x70]
call fcn.0040273f
push ebx
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0040273f
cmp dword [ebp - 0x10], edi
jne 0x40c15c
lea eax, [ebp - 0x10]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x40c15c
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xdc], 8
mov eax, dword [ebp + 0xc8]
jae 0x40c171
lea eax, [ebp + 0xc8]
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c21b
cmp dword [ebp + 0x114], 8
mov eax, dword [ebp + 0x100]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
jae 0x40c1a8
lea eax, [ebp + 0x100]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x20]
push ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x40c212
cmp dword [ebp - 0x18], 1
jne 0x40c212
push dword [ebp - 0x20]
call fcn.0042c877
cmp dword [ebp + 0x114], 8
mov edi, eax
mov eax, dword [ebp + 0x100]
pop ecx
jae 0x40c1e8
lea eax, [ebp + 0x100]
lea ecx, [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x40c20b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x11], 1
jmp 0x40c212
push edi
call fcn.0042d85a
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov eax, SysReAllocString
and ecx, eax
cmp ecx, eax
je 0x40c232
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp + 0xfc]
call fcn.0040273f
push ebx
push edi
lea esi, [ebp + 0xc4]
call fcn.0040273f
push ebx
push edi
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040273f
cmp byte [ebp - 0x11], bl
je 0x40c282
cmp dword [ebp - 0x24], ebx
je 0x40c293
cmp dword [ebp - 0x2c], ebx
jbe 0x40c293
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0040215a
push dword [ebp - 0x24]
call fcn.0042d85a
pop ecx
jmp 0x40c293
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x140]
call fcn.00402658
push ebx
push edi
lea esi, [ebp + 0x124]
call fcn.0040273f
push ebx
push edi
lea esi, [ebp + 0x140]
call fcn.0040273f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x118]
xor ecx, ebp
call fcn.0042cac7
add ebp, 0x11c
leave
ret