Function at 0x419a30
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ee2d7
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x6f1550]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
push edi
mov eax, dword [0x6f1550]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x138], ebx
push str.CLSIDE436EBB5_524F_11CE_9F53_0020AF0BA770InprocServer32
lea ecx, [esp + 0x24]
call fcn.00401f00
mov byte [esp + 0x138], 1
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push ecx
push DirectSoundCreate
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x419c6a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov edi, eax
push ebx
mov dword [esp + 0x30], edi
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x419c6a
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x419af2
cmp eax, 2
jne 0x419c6a
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
call fcn.00401a30
mov byte [esp + 0x138], 2
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x419b2e
push esi
lea ecx, [esp + 0x14]
call fcn.004019e0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push edx
push ebx
lea ecx, [esp + 0x28]
call fcn.004137b0
test eax, eax
jne 0x419c59
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.004150b0
lea ecx, [esp + 0x10]
call fcn.00418620
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x419c59
push str.shared_filesource.ax
push ecx
call fcn.005c0219
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x419b84
sub eax, ecx
jns 0x419bad
cmp dword [ecx - 0xc], ebx
jl 0x419c59
push str.shared1.ax
push ecx
call fcn.005c0219
add esp, 8
cmp eax, ebx
je 0x419c59
sub eax, dword [esp + 0x10]
js 0x419c59
push ebx
push 0x34
push str.Warning:_Player_has_detected_that_DirectShows__File_Source__async___filter_nwas_replaced_by_shared_filesource.ax._Please_run__regsvr32.exe_quartz.dll__nin_your_system_folder_to_restore_it._If_you_are_a_user_with_administrator_nrights__BLC_can_also_do_this_for_you._Do_you_want_to_re_register_quartz.dll_now_
call fcn.005a9608
cmp eax, 6
jne 0x419c59
push 0x105
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f00
mov byte [esp + 0x138], 3
push str.quartz.dll
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00418de0
add esp, 0xc
mov byte [esp + 0x138], 5
lea ecx, [esp + 0x18]
call fcn.00401aa0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x419c3b
push str.DllRegisterServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x419c3b
call eax
cmp eax, ebx
jl 0x419c3b
push ebx
push ebx
push str.Successfully_re_registered_quartz.dll__you_may_need_to_restart_the_player_now.
jmp 0x419c43
push ebx
push 0x30
push str.Failed_to_re_register_quartz.dll_
call fcn.005a9608
mov byte [esp + 0x138], 2
lea ecx, [esp + 0x14]
call fcn.00401aa0
mov byte [esp + 0x138], 1
lea ecx, [esp + 0x10]
call fcn.00401aa0
mov byte [esp + 0x138], bl
lea ecx, [esp + 0x20]
call fcn.00401aa0
mov dword [esp + 0x138], 0xffffffff
cmp edi, ebx
je 0x419c94
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005bf6a4
add esp, 0x12c
ret