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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61c0d8
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [esp + 0x38], ebx
push esi
mov esi, ecx
je 0x4a5fcd
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1a0]
call edx
test al, al
je 0x4a5fcd
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1a8]
call edx
push eax
lea ecx, [esp + 0x10]
call fcn.004a52f0
test byte [esp + 0x3c], 4
mov dword [esp + 0x34], ebx
je 0x4a5b3b
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x13c]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x38], 1
call eax
test al, al
je 0x4a5b2a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.Video_Format
lea ecx, [esp + 0x18]
call fcn.0051af7a
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x38], bl
call fcn.005f7a6f
add esp, 4
test byte [esp + 0x3c], 8
push ebp
push edi
je 0x4a5c16
test byte [0x6b5184], 1
je 0x4a5bfa
mov eax, dword [0x6b5190]
cmp eax, ebx
je 0x4a5bfa
mov edx, dword [0x6b51a8]
mov ecx, dword [0x6b518c]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x6b51b0]
mov dword [esp + 0x28], edx
push 0x14
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [0x6b51ac]
push edx
mov dword [esp + 0x38], ecx
push str.Video_Comp_Format
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.0051af7a
mov eax, dword [0x6b5188]
cmp eax, ebx
je 0x4a5c08
push ebx
push ebx
push 0x5000
push eax
call sub.MSVFW32.dll_ICSendMessage
mov edi, eax
cmp edi, ebx
jbe 0x4a5c08
push edi
call fcn.005f79ac
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a5c08
mov eax, dword [0x6b5188]
push edi
push ebp
push 0x5000
push eax
call sub.MSVFW32.dll_ICSendMessage
push edi
push ebp
push str.Video_Comp_Format_Data
lea ecx, [esp + 0x20]
call fcn.0051af7a
push ebp
call fcn.005f7a6f
add esp, 4
jmp 0x4a5c16
push str.Video_Comp_Format
lea ecx, [esp + 0x18]
call fcn.0051b0ea
push str.Video_Comp_Format_Data
lea ecx, [esp + 0x18]
call fcn.0051b0ea
test dword [esp + 0x44], 0x800
je 0x4a5c62
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xa0]
call eax
cmp eax, ebx
jl 0x4a5c54
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x98]
call eax
cmp eax, ebx
je 0x4a5c54
push eax
push str.Audio_Device
lea ecx, [esp + 0x1c]
call fcn.0051af52
jmp 0x4a5c62
push str.Audio_Device
lea ecx, [esp + 0x18]
call fcn.0051b0ea
test byte [esp + 0x44], 1
je 0x4a5cb5
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x148]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x40], 2
call edx
test al, al
je 0x4a5ca4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str.Audio_Format
lea ecx, [esp + 0x20]
call fcn.0051af7a
mov edx, dword [esp + 0x1c]
push edx
mov byte [esp + 0x40], bl
call fcn.005f7a6f
add esp, 4
test byte [esp + 0x44], 2
je 0x4a5d64
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov edi, 0x6575c8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x154]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x44], 4
call eax
test al, al
je 0x4a5d26
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push str.Audio_Comp_Format
lea ecx, [esp + 0x20]
call fcn.0051af7a
mov eax, dword [esp + 0x20]
push eax
push str.Audio_Comp_Hint
lea ecx, [esp + 0x1c]
call fcn.0051af2a
jmp 0x4a5d42
push str.Audio_Comp_Format
lea ecx, [esp + 0x18]
call fcn.0051b0ea
push str.Audio_Comp_Hint
lea ecx, [esp + 0x18]
call fcn.0051b0ea
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4a5d53
push eax
call fcn.005f7371
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x40], bl
call fcn.005f7a6f
add esp, 4
test dword [esp + 0x44], 0x1000
je 0x4a5d9b
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf8]
call eax
test al, al
je 0x4a5d9b
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
call eax
lea ecx, [esp + 0x14]
push eax
push str.Audio_playback_enabled
call fcn.0051aeda
test byte [esp + 0x44], 0x10
je 0x4a5dce
push 0x989680
push str.Frame_rate_numerator
lea ecx, [esp + 0x1c]
call fcn.0051af02
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x54]
call eax
push eax
push str.Frame_rate_denominator
lea ecx, [esp + 0x1c]
call fcn.0051af02
test byte [esp + 0x44], 0x20
je 0x4a5de8
movzx ecx, byte [esi + 0x70]
push ecx
push str.Switch_sources_together
lea ecx, [esp + 0x1c]
call fcn.0051aeda
test byte [esp + 0x44], 0x80
je 0x4a5e01
mov edx, dword [esi + 0x40]
push edx
push str.Display_slow_modes
lea ecx, [esp + 0x1c]
call fcn.0051af02
test byte [esp + 0x44], 0x40
je 0x4a5e2c
mov eax, dword [esi + 0x4c]
push eax
push str.Display_accel_mode
lea ecx, [esp + 0x1c]
call fcn.0051af02
mov ecx, dword [esi + 0x44]
push ecx
push str.Display_mode
lea ecx, [esp + 0x1c]
call fcn.0051af02
test dword [esp + 0x44], 0x2000
je 0x4a5e96
xor edi, edi
jmp 0x4a5e40
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x158]
push edi
call eax
test al, al
je 0x4a5e8e
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x15c]
lea eax, [esp + 0x13]
push eax
push edi
call edx
mov edx, dword [edi*4 + 0x63cee4]
mov dword [esp + 0x18], eax
xor eax, eax
cmp byte [esp + 0x13], bl
push 8
setne al
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.0051af7a
add edi, 1
cmp edi, 0xa
jl 0x4a5e40
test dword [esp + 0x44], 0x100
pop edi
pop ebp
je 0x4a5f16
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xb4]
call edx
cmp eax, ebx
jl 0x4a5ed6
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xac]
call eax
cmp eax, ebx
je 0x4a5ed6
push eax
push str.Video_source
lea ecx, [esp + 0x14]
call fcn.0051af52
jmp 0x4a5ee4
push str.Video_source
lea ecx, [esp + 0x10]
call fcn.0051b0ea
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
cmp eax, ebx
jl 0x4a5f54
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc0]
call eax
cmp eax, ebx
je 0x4a5f16
push eax
push str.Audio_source
lea ecx, [esp + 0x14]
call fcn.0051af52
test dword [esp + 0x3c], 0x200
je 0x4a5f69
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe0]
call eax
cmp eax, ebx
jl 0x4a5f5b
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xd8]
call eax
cmp eax, ebx
je 0x4a5f5b
push eax
push str.Audio_input
lea ecx, [esp + 0x14]
call fcn.0051af52
jmp 0x4a5f69
mov eax, 0x62a088
jmp 0x4a5f07
push str.Audio_input
lea ecx, [esp + 0x10]
call fcn.0051b0ea
test dword [esp + 0x3c], 0x400
je 0x4a5fbc
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x78]
call eax
cmp eax, ebx
lea ecx, [esp + 0xc]
jl 0x4a5f92
push eax
push str.Channel
call fcn.0051af02
jmp 0x4a5f9c
push str.Channel
call fcn.0051b0ea
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x8c]
call eax
cmp eax, ebx
je 0x4a5fbc
push eax
push str.Tuner_input_mode
lea ecx, [esp + 0x14]
call fcn.0051af02
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0051aec7
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4