Function at 0x4013c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447696
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x45b680]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push esi
push edi
mov eax, dword [0x45b680]
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.00404930
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.00403700
call fcn.004122f7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40143f
push 0x80004005
call fcn.00404ab0
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 0x4014e5
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.00404390
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 0x4014b3
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 0x4014de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4015d8
push 0x7fe
lea edx, [esp + 0x2a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x30], cx
call fcn.004308e0
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 0x401545
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x830], bl
lea eax, [esi - 0x10]
jmp 0x40149a
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 0x401557
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.00404800
call fcn.00402720
push 0x44ef70
push 0x44ef74
push edi
call fcn.00402500
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 0x4015ab
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 0x4015d6
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.0042de55
add esp, 0x824
ret