Function at 0x41838f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.CWinDVD::ReadRegion
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
cmp eax, 4
jne 0x418438
xor eax, eax
mov edx, 0xc35fe977
push eax
push eax
push 3
pop ecx
push ecx
push eax
push ecx
push eax
push 0xc40bf486
mov ecx, 0x3c5e0ba1
call fcn.0040160e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418592
push 0x27
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x3c], 0
push 0
push eax
call fcn.004b6030
add esp, 0xc
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x40], eax
push eax
push ecx
push 0x28
lea ecx, [ebp - 0x3c]
push ecx
push eax
push eax
push 0x11700810
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx eax, byte [ebp - 0x3c]
mov dword [ebx + 8], eax
movzx eax, byte [ebp - 0x3b]
push esi
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418592
cmp eax, 5
jne 0x418592
lea eax, [ebp - 0x44]
mov edx, 0xe1b3609
push eax
push 0x94f2bf8
mov ecx, 0xf11ad4fb
call fcn.0040160e
pop ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x418592
push edi
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
mov edx, 0x83a11664
mov ecx, 0x7ca0f4ea
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x48], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0x84f50b9e
call fcn.0040160e
pop ecx
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
inc edx
test esi, esi
je 0x4184d1
cmp dword [ebp - 0x40], edx
jne 0x418591
movzx eax, word [ebp - 0xc]
push 3
pop ecx
push 2
pop esi
push 0x31
pop edi
cmp eax, edi
je 0x418501
cmp eax, 0x37
je 0x4184fc
cmp eax, 0x42
je 0x4184f7
cmp eax, 0x54
jne 0x418504
and dword [ebx + 8], 0
jmp 0x418504
mov dword [ebx + 8], ecx
jmp 0x418504
mov dword [ebx + 8], esi
jmp 0x418504
mov dword [ebx + 8], edx
mov ax, word [ebp - 0x12]
cmp ax, 0x33
jne 0x418525
cmp word [ebp - 0x10], 0x50
jne 0x418591
cmp word [ebp - 0xe], 0x46
jne 0x418591
mov dword [ebx + 0xc], 5
jmp 0x418591
cmp ax, 0x32
jne 0x418561
cmp word [ebp - 0x10], 0x50
jne 0x418542
cmp word [ebp - 0xe], 0x47
jne 0x418591
mov dword [ebx + 0xc], 4
jmp 0x418591
cmp word [ebp - 0x10], 0x51
jne 0x418591
cmp word [ebp - 0xe], 0x30
jne 0x418555
mov dword [ebx + 0xc], ecx
jmp 0x418591
cmp word [ebp - 0xe], 0x47
jne 0x418591
mov dword [ebx + 0xc], esi
jmp 0x418591
cmp ax, di
jne 0x418579
cmp word [ebp - 0x10], 0x52
jne 0x418591
cmp word [ebp - 0xe], 0x30
jne 0x418591
mov dword [ebx + 0xc], edx
jmp 0x418591
cmp ax, 0x30
jne 0x418591
cmp word [ebp - 0x10], 0x52
jne 0x418591
cmp word [ebp - 0xe], 0x47
jne 0x418591
and dword [ebx + 0xc], 0
pop edi
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004b35e5
mov esp, ebp
pop ebp
ret 8