Function at 0x411a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491f0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f8
mov eax, dword [0x4b5320]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x4fc], eax
mov dword [esp + 0x18], esi
call fcn.00438160
xor ebx, ebx
test eax, eax
je 0x411bdc
mov eax, dword [ebp + 8]
push eax
call dword [0x4b541c]
cmp eax, 5
jne 0x411bdc
push 1
lea ecx, [esp + 0x14]
push ecx
push str.HD_HybridDiscPreference
mov dword [esp + 0x1c], 1
call fcn.0043acd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
seta byte [esp + 0x1f]
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x18]
cmp eax, ecx
je 0x411bdc
mov edi, dword [eax + 8]
cmp edi, ebx
mov edx, dword [eax]
mov dword [esi + 0x18], edx
je 0x411bdc
mov eax, dword [edi]
push edi
call dword [eax + 0x28]
cmp eax, 1
jne 0x411ad7
push 0x403ba0
push 0x408d90
push eax
push 0x10
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x20], ebx
call fcn.0048c53e
mov ecx, dword [edi]
lea edx, [esp + 0xc]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x20]
push edx
push 0x816
push ebx
lea eax, [esp + 0x3c]
push edi
mov dword [esp + 0x51c], ebx
mov word [esp + 0x40], 0x400d
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ebx
call dword [ecx + 0x44]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x411bbe
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x499d68
push eax
mov byte [esp + 0x518], 1
call dword [ecx]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x411bad
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
movzx ecx, byte [esp + 0x1f]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x50c], bl
je 0x411bbe
mov edx, dword [eax]
push eax
call dword [edx + 8]
push 0x403ba0
push 1
push 0x10
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x51c], 0xffffffff
call fcn.0048c494
call fcn.00438160
test eax, eax
jne 0x411bee
call fcn.00438130
test eax, eax
je 0x411c21
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call fcn.00430f70
add esp, 4
test eax, eax
jl 0x411c21
lea edx, [esp + 0x10]
push edx
call fcn.004310e0
mov eax, dword [ebp + 8]
push eax
call fcn.004322c0
add esp, 8
test eax, eax
jl 0x41210d
xor eax, eax
mov word [esp + 0x2f8], bx
mov ecx, 0x7f
lea edi, [esp + 0x2fa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0xf8], bx
mov ecx, 0x7f
lea edi, [esp + 0xfa]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x2fc]
push edx
push ebx
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.MSVCR71.dll__wsplitpath]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x10c]
push str..HMT
push ecx
mov dword [edi], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 0x1c
test eax, eax
jne 0x411ca1
mov dword [edi], 0x1000000
mov dword [edi + 4], ebx
jmp 0x411dd2
lea edx, [esp + 0xf8]
push str..BDAV
push edx
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x411cc9
mov dword [edi], 0x10000000
mov dword [edi + 4], ebx
jmp 0x411dd2
lea eax, [esp + 0xf8]
push str..BDMV
push eax
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x411cf1
mov dword [edi], ebx
mov dword [edi + 4], 1
jmp 0x411dd2
lea ecx, [esp + 0xf8]
push str..BDM
push ecx
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x411d19
mov dword [edi], ebx
mov dword [edi + 4], 1
jmp 0x411dd2
lea edx, [esp + 0xf8]
push str..IFO
push edx
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x411d58
lea eax, [esp + 0x2f8]
push str.HVI00001
push eax
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x411d58
mov dword [edi], 0x20000000
mov dword [edi + 4], ebx
jmp 0x411dd2
lea ecx, [esp + 0xf8]
push str..XML
push ecx
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x411d97
lea edx, [esp + 0x2f8]
push str.VPLIST00
push edx
call dword [sym.imp.MSVCR71.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x411d97
mov dword [edi], 0x20000000
mov dword [edi + 4], ebx
jmp 0x411dd2
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x14]
call fcn.0040a170
mov ecx, dword [esp + 0x10]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x514], 2
call fcn.0040a5b0
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x510], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov edx, dword [ebp + 0x14]
and eax, ecx
mov ecx, dword [edi + 4]
and ecx, edx
or eax, ecx
je 0x411def
mov eax, 0xfffffffa
jmp 0x4120cf
call fcn.00438160
test eax, eax
je 0x411e42
cmp dword [edi], ebx
jne 0x411e42
cmp dword [edi + 4], 0x10
jne 0x411e42
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], ebx
call fcn.00430f70
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.00431110
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
call fcn.004310e0
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebx
jl 0x41210d
mov dword [edi], 0x20000000
mov dword [edi + 4], ebx
mov ecx, dword [edi]
mov eax, ecx
and eax, 2
or eax, ebx
je 0x411e65
mov eax, dword [edi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00410fa0
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x41200e
mov esi, dword [edi + 4]
mov eax, 1
mov ecx, 2
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x20
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x80
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x100
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x1000
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], 0x200
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], 0x400
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa0], 0x800
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xac], 8
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 3
mov dword [esp + 0xb8], 4
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], 5
mov dword [esp + 0xc4], 0x1000000
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], 9
mov dword [esp + 0xd0], 0x10000000
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], 0xb
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], 0xc
mov dword [esp + 0xe8], 0x20000000
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], 0xd
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x40]
mov edx, dword [edi]
mov eax, dword [ecx]
and eax, edx
mov edx, dword [ecx + 4]
and edx, esi
or eax, edx
mov eax, dword [esp + 0xc]
jne 0x411ff3
inc eax
add ecx, 0xc
cmp eax, 0xf
mov dword [esp + 0xc], eax
jb 0x411fd1
jmp 0x412002
lea eax, [eax + eax*2]
mov eax, dword [esp + eax*4 + 0x48]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x41200a
mov dword [esp + 0x14], 7
mov esi, dword [esp + 0x18]
call fcn.0042ebb0
test eax, eax
je 0x41205d
call fcn.0042da70
cmp eax, 1
jne 0x41205d
call fcn.0042d630
push eax
call fcn.00431e10
add esp, 4
test eax, eax
je 0x41205d
mov eax, dword [esi + 0x10]
mov esi, dword [eax]
cmp esi, eax
je 0x412059
lea esp, [esp]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp eax, 0xa
je 0x412086
mov edx, dword [esp + 0x18]
mov esi, dword [esi]
cmp esi, dword [edx + 0x10]
jne 0x412040
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], ebx
je 0x4120ca
mov eax, dword [esi + 0x10]
mov esi, dword [eax]
cmp esi, eax
je 0x4120b0
lea esp, [esp]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp eax, 7
je 0x412094
cmp eax, dword [esp + 0x14]
je 0x4120b0
jmp 0x4120a5
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], 0xa
jmp 0x412063
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
test eax, eax
jge 0x4120b0
mov edx, dword [esp + 0x18]
mov esi, dword [esi]
cmp esi, dword [edx + 0x10]
jne 0x412070
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
cmp esi, ecx
jne 0x4120f2
cmp dword [edi], 2
jne 0x4120ca
cmp dword [edi + 4], ebx
mov eax, 0xfffffffb
je 0x4120cf
mov eax, 0xfffffffc
mov ecx, dword [esp + 0x504]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4fc]
call fcn.0048c3c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 8]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x18], ecx
mov esi, dword [esi + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
test eax, eax
jge 0x412114
call fcn.00432fd0
mov eax, 0xfffffffe
jmp 0x4120cf
xor eax, eax
jmp 0x4120cf