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

Disassembly:
push ebp
mov edx, 0xffffffea
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x40
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x3c], 0
cmp dword [esi + 0x1c], 0xfffffef
ja 0x53623a
test ebx, ebx
je 0x53619a
mov dword [esp + 8], 0
mov eax, dword [ebx]
lea edi, [esp + 0x3c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00ad2430
mov eax, dword [0x14da898]
test eax, eax
je 0x5361bd
mov dword [esp + 4], 1
mov dword [esp], 0x14da89c
call eax
mov edx, 0xffffffff
test eax, eax
jne 0x53623a
mov eax, dword [0x14da88c]
add eax, 1
mov dword [0x14da88c], eax
mov eax, dword [0x14da88c]
cmp eax, 1
je 0x536244
mov dword [esp + 8], str.insufficient_thread_locking_around_avcodec_open_close___n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffff
mov eax, dword [0x14da88c]
sub eax, 1
mov dword [0x14da88c], eax
mov eax, dword [0x14da898]
test eax, eax
je 0x536220
mov dword [esp + 0x24], edx
mov dword [esp + 4], 2
mov dword [esp], 0x14da89c
call eax
mov edx, dword [esp + 0x24]
test ebx, ebx
je 0x53623a
mov dword [esp + 0x24], edx
mov dword [esp], ebx
call fcn.00ad23d0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x536252
mov edx, 0xffffffea
jmp 0x5361f1
mov edi, dword [esi + 0x78]
test edi, edi
jne 0x53624b
mov dword [esp], 0x10
call fcn.00ad02a0
mov edx, 0xfffffff4
test eax, eax
mov dword [esi + 0x3d4], eax
je 0x5361f1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
test eax, eax
jle 0x5364b0
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x536576
mov edx, dword [ebp + 0xc]
lea edi, [esp + 0x3c]
mov eax, dword [edx + 0x48]
test eax, eax
je 0x5362b4
mov dword [esp + 4], edi
mov eax, dword [esi + 0x7c]
mov dword [esp], eax
call fcn.00ad4eb0
test eax, eax
mov edx, eax
js 0x5362f5
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00ad4eb0
test eax, eax
mov edx, eax
js 0x5362f5
mov edx, dword [ebp + 0xc]
test byte [edx + 0x21], 2
je 0x536330
cmp dword [esi + 0xe8], 0xffffffff
jl 0x536330
mov dword [esp + 8], str.Codec_is_experimental_but_experimental_codecs_are_not_enabled__see__strict__2_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffff
mov dword [esp + 0x24], edx
mov dword [esp], edi
call fcn.00ad23d0
lea eax, [esi + 0x7c]
mov dword [esp], eax
call fcn.00ad0270
lea eax, [esi + 0x3d4]
mov dword [esp], eax
call fcn.00ad0270
mov edx, dword [esp + 0x24]
mov dword [esi + 0x78], 0
jmp 0x5361f1
mov edx, dword [esi + 0x27c]
test edx, edx
jne 0x536456
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esp + 0x28], eax
je 0x5364c0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x5364c0
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x278]
mov dword [esi + 0x280], eax
mov dword [esi + 0x27c], edx
neg edx
sar edx, cl
neg edx
mov dword [esi + 0x28], edx
mov edx, eax
neg edx
sar edx, cl
neg edx
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00ad0f40
test eax, eax
js 0x5364f2
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [esi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call fcn.00ad0f40
test eax, eax
js 0x5364f2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x5363e4
lea eax, [esi + 0x3a0]
mov dword [esp], eax
call fcn.00ad0270
cmp dword [esi + 0x40], 0x80
mov edx, 0xffffffea
ja 0x5362f5
mov eax, dword [esi + 0xd0]
mov edx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi + 0x78], edx
je 0x536531
cmp eax, dword [edx + 4]
je 0x536531
mov edx, dword [esi + 0xd4]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], edx
jne 0x536434
cmp eax, dword [ecx + 4]
je 0x5365ae
cmp eax, 4
je 0x5365ae
mov dword [esp + 8], str.codec_type_or_id_mismatches_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffea
jmp 0x5362f5
mov eax, dword [esi + 0x280]
test eax, eax
je 0x53633e
mov ecx, dword [esi + 0x28]
test ecx, ecx
jne 0x536559
mov ecx, edx
neg ecx
mov dword [esp + 0x28], ecx
movzx ecx, byte [esi + 0x278]
sar dword [esp + 0x28], cl
neg dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x28], ecx
mov ecx, eax
neg ecx
mov dword [esp + 0x28], ecx
movzx ecx, byte [esi + 0x278]
sar dword [esp + 0x28], cl
neg dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x2c], ecx
jmp 0x536386
mov dword [esi + 0x7c], 0
lea edi, [esp + 0x3c]
jmp 0x5362b4
test edx, edx
mov eax, dword [esi + 0x280]
jne 0x536386
test eax, eax
jne 0x536386
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x536386
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x5363cc
jmp 0x536386
mov dword [esp + 8], str.ignoring_invalid_width_height_values_n
mov dword [esp + 4], 0x18
mov dword [esp], esi
call fcn.00acfa00
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
jmp 0x5363cc
mov edx, dword [esi + 0xd4]
test edx, edx
jne 0x53641a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], edx
jmp 0x53641a
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x53646f
cmp dword [esi + 0xd4], 0x1c
jne 0x53646f
jmp 0x536386
mov dword [esp + 0x24], edx
mov dword [esp], eax
call fcn.00ad02a0
mov edx, dword [esp + 0x24]
test eax, eax
mov dword [esi + 0x7c], eax
je 0x5361f1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x48]
test edx, edx
je 0x5364b7
mov dword [eax], edx
mov dword [esp], eax
call fcn.00ad4710
jmp 0x536291
mov eax, dword [esi + 0x3d0]
mov dword [esi + 0x4c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xf0]
mov dword [esp + 8], str.error__recognition_separate:__d___X_n
mov dword [esp + 4], 0x30
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.00acfa00
mov eax, dword [esi + 0xf0]
mov edx, dword [esi + 0x3d0]
cmp eax, 5
ja case.0x5365f2.0
jmp dword [eax*4 + 0x1134794]
or edx, 0x40000
or edx, 0x20000
or edx, 0x10000
mov dword [esi + 0x3d0], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.error__recognition_combined:__d___X_n
mov dword [esp + 4], 0x30
mov dword [esp], esi
call fcn.00acfa00
mov eax, dword [esi + 0x254]
test eax, eax
je 0x536882
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x278]
movzx edx, byte [ecx + 0x44]
cmp edx, eax
jl 0x5366c8
test eax, eax
js 0x5366c8
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x536899
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x5366ee
mov edx, dword [eax]
cmp edx, 0xffffffff
mov dword [esp + 0x28], edx
je 0x536695
mov edx, dword [esi + 0x44]
cmp dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
jne 0x53668d
jmp 0x5366ee
add eax, 4
cmp edx, dword [esp + 0x2c]
je 0x5366ee
mov edx, dword [eax + 4]
cmp edx, 0xffffffff
jne 0x536684
mov dword [esp + 8], str.Specified_sample_fmt_is_not_supported._n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffea
jmp 0x5362f5
or edx, 0x30008
mov dword [esi + 0x3d0], edx
jmp case.0x5365f2.0
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.The_maximum_value_for_lowres_supported_by_the_decoder_is__d_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffea
jmp 0x5362f5
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x536742
mov edx, dword [eax]
test edx, edx
mov dword [esp + 0x28], edx
je 0x536720
mov edx, dword [esi + 0x3c]
cmp dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
jne 0x536719
jmp 0x536742
add eax, 4
cmp edx, dword [esp + 0x2c]
je 0x536742
mov edx, dword [eax + 4]
test edx, edx
jne 0x536710
mov dword [esp + 8], str.Specified_sample_rate_is_not_supported_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffea
jmp 0x5362f5
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x5367e3
mov ecx, dword [esi + 0x338]
mov edx, dword [esi + 0x33c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
or edx, ecx
je 0x5367cb
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
or edx, ecx
je 0x5367a9
cmp dword [esp + 0x28], ecx
je 0x536910
mov dword [esp + 0x20], ebx
jmp 0x536799
xor ecx, dword [esp + 0x28]
add eax, 8
xor edx, dword [esp + 0x2c]
or ecx, edx
je 0x5368ab
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, ecx
or ebx, edx
jne 0x536786
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], str.Specified_channel_layout_is_not_supported_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffea
jmp 0x5362f5
mov dword [esp + 8], str.channel_layout_not_specified_n
mov dword [esp + 4], 0x18
mov dword [esp], esi
call fcn.00acfa00
mov eax, dword [esi + 0x338]
mov edx, dword [esi + 0x33c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
or edx, eax
jne 0x5368af
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + 0x10]
xor edx, edx
mov dword [esi + 0x3e8], 0
mov dword [esi + 0x3ec], 0
mov dword [esi + 0x3e0], 0
test eax, eax
mov dword [esi + 0x3e4], 0
mov dword [esi + 0x3f8], 0
mov dword [esi + 0x3fc], 0x80000000
mov dword [esi + 0x3f0], 0
mov dword [esi + 0x3f4], 0x80000000
je 0x5361f1
test byte [esi + 0x3b4], 1
jne 0x5361f1
mov dword [esp], esi
call eax
test eax, eax
mov edx, eax
js 0x5362f5
xor edx, edx
jmp 0x5361f1
mov dword [esp], esi
call fcn.00811660
test eax, eax
mov edx, eax
jns 0x53663f
jmp 0x5362f5
cmp dword [ecx + 0x60], 0
lea esi, [esi]
jne 0x53665f
jmp 0x536802
mov ebx, dword [esp + 0x20]
cmp dword [esi + 0x40], 0
jne 0x5368d1
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00ad5d30
mov dword [esi + 0x40], eax
jmp 0x5367ff
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00ad5d30
cmp eax, dword [esi + 0x40]
je 0x5367ff
mov dword [esp + 8], str.channel_layout_does_not_match_number_of_channels_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov edx, 0xffffffea
jmp 0x5362f5
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x2c], ecx
jne 0x536780
jmp 0x5368af