Function at 0x401450
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x449186
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x45e680]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push esi
push edi
mov eax, dword [0x45e680]
xor eax, esp
push eax
lea eax, [esp + 0x828]
mov dword fs:[0], eax
mov esi, ecx
push str.DosDevices_
lea ecx, [esp + 0x14]
mov edi, edx
call fcn.00404a10
xor ebx, ebx
mov dword [esp + 0x830], ebx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004037b0
call fcn.00413cd5
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4014cf
push 0x80004005
call fcn.00404b90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
push str.SYSTEMMountedDevices
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x844], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x401575
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.CCdRomTools::GetCdromMountName___RegOpenKeyEx_failed_errcode_d
push edx
call fcn.00404440
mov byte [esp + 0x83c], bl
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x830], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40156e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x401668
push 0x7fe
lea edx, [esp + 0x2a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x30], cx
call fcn.00432320
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x34], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x4015d5
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x830], bl
lea eax, [esi - 0x10]
jmp 0x40152a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4015e7
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.004048e0
call fcn.004027b0
push 0x450f80
push 0x450f84
push edi
call fcn.00402590
lea eax, [esi - 0x10]
mov byte [esp + 0x830], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40163b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x830], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0042f892
add esp, 0x824
ret