Function at 0x40ae30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d39e
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x412194]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x80004005
push str.CLSID_
lea ecx, [ebp - 0x14]
call fcn.00401400
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x144]
call fcn.00401400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00401240
push str.InprocServer32
lea ecx, [ebp - 0x148]
call fcn.00401400
mov byte [ebp - 4], 2
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00401240
call fcn.00401460
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
call fcn.00401190
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40aefe
mov dword [ebp - 0x150], 0
jmp 0x40af5f
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x40af23
mov dword [ebp - 0x154], 0
jmp 0x40af53
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.00406fd0
mov dword [ebp - 0x158], esp
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.00401140
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x150]
push eax
push str.Attempting_to_open_the_following_registry_key:
call fcn.0040ae00
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00401190
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40af90
mov dword [ebp - 0x15c], 0
jmp 0x40aff1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x40afb5
mov dword [ebp - 0x160], 0
jmp 0x40afe5
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.00406fd0
mov dword [ebp - 0x164], esp
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x164]
push edx
call fcn.00401140
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push 0
mov edx, dword [ebp - 0x15c]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b0b4
mov dword [ebp - 0x30], 0x104
push str.Open_succeeded__attempting_to_read_the_default_value
call fcn.0040ade0
add esp, 4
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b09b
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x140]
call fcn.00401400
lea edx, [ebp - 0x13c]
push edx
push str.Default_value:
call fcn.0040ae00
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x40b087
lea ecx, [ebp - 0x140]
call fcn.00401110
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x140]
call fcn.00401240
jmp 0x40b0a8
push str.No_default_value_stored
call fcn.0040ade0
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b0c1
push str.Unable_to_open_the_key
call fcn.0040ade0
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401240
mov eax, dword [ebp - 0x14c]
lea esp, [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0040147b
mov esp, ebp
pop ebp
ret 8