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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push ebx
call fcn.00538100
add esp, 4
cmp eax, 0x3f
ja 0x50e96e
push esi
mov esi, dword [edi + eax*4 + 0x4e78]
push ebx
mov dword [esi], 0
mov dword [esi + 4], eax
call fcn.00538100
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xf
jbe 0x50e210
push eax
push str.IHW265D_Decode_:_the_value_of_pps_seq_parameter_set_id_is__d__it_should_be_less_than_16__n
mov eax, dword [ebp + 0x10]
push 0
push eax
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + eax*4 + 0x4e38]
cmp dword [ecx], 0
jne 0x50e23a
mov ecx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_ID_of_SPS_that_current_PPS_refered_is__d__which_is_not_exist__n
push 0
push ecx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x79a0]
mov eax, 1
shl eax, cl
push ebx
mov dword [ebp - 8], eax
call fcn.00538060
push ebx
mov dword [esi + 0xc], eax
call fcn.00538060
push 3
push ebx
mov dword [esi + 0x10], eax
call fcn.00537ff0
push ebx
mov dword [esi + 0x14], eax
call fcn.00538060
push ebx
mov dword [esi + 0x18], eax
call fcn.00538060
push ebx
mov dword [esi + 0x1c], eax
call fcn.00538100
add esp, 0x1c
mov dword [esi + 0x20], eax
cmp eax, 0xe
jbe 0x50e2a8
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_num_ref_idx_l0_default_active_minus1_is__d__it_should_be_less_than_15__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00538100
add esp, 4
mov dword [esi + 0x24], eax
cmp eax, 0xe
jbe 0x50e2c4
push eax
push str.IHW265D_Decode_:_the_value_of_num_ref_idx_l1_default_active_minus1_is__d__it_should_be_less_than_15__n
jmp 0x50e1f8
push ebx
call fcn.00538150
add esp, 4
mov dword [esi + 0x28], eax
cmp eax, 0xffffffe6
jl 0x50e950
cmp eax, 0x19
jg 0x50e950
push ebx
call fcn.00538060
push ebx
mov dword [esi + 0x2c], eax
call fcn.00538060
push ebx
mov dword [esi + 0x30], eax
call fcn.00538060
add esp, 0xc
mov dword [esi + 0x34], eax
test eax, eax
je 0x50e343
push ebx
call fcn.00538100
mov ecx, dword [esi + 8]
mov dword [esi + 0x38], eax
mov edx, dword [edi + ecx*4 + 0x4e38]
mov ecx, dword [edx + 0x5d8]
add esp, 4
cmp eax, ecx
jbe 0x50e34a
push ecx
push eax
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_the_value_of_diff_cu_qp_delta_depth_is__d__it_should_be_in_the_range_of_0_to__d__n
push 0
push eax
call dword [ebp + 0x14]
add esp, 0x14
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], 0
push ebx
call fcn.00538150
add esp, 4
mov dword [esi + 0x3c], eax
cmp eax, 0xfffffff4
jl 0x50e945
cmp eax, 0xc
jg 0x50e945
push ebx
call fcn.00538150
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, 0xfffffff4
jl 0x50e927
cmp eax, 0xc
jg 0x50e927
push ebx
call fcn.00538060
push ebx
mov dword [esi + 0x44], eax
call fcn.00538060
push ebx
mov dword [esi + 0x48], eax
call fcn.00538060
push ebx
mov dword [esi + 0x4c], eax
call fcn.00538060
push ebx
mov dword [esi + 0x50], eax
call fcn.00538060
push ebx
mov dword [esi + 0x54], eax
call fcn.00538060
add esp, 0x18
cmp dword [esi + 0x54], 0
mov dword [esi + 0x58], eax
je 0x50e3e6
test eax, eax
je 0x50e3e6
mov ecx, dword [ebp + 0x10]
push str.IHW265D_Decode_:_tile_and_wpp_can_not_be_both_open__n
push 0
push ecx
call dword [ebp + 0x14]
add esp, 0xc
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
mov eax, dword [edi + edx*4 + 0x4e38]
mov ecx, dword [eax + 0x79a4]
mov eax, dword [eax + 0x79a8]
mov edx, 1
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], edx
mov edx, dword [edi + 0x4f7c]
mov dword [edx], ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x4f80]
mov dword [ecx], eax
cmp dword [esi + 0x54], 0
mov dword [ebp - 0x10], eax
je 0x50e703
push ebx
call fcn.00538100
inc eax
add esp, 4
mov dword [esi + 0x60], eax
cmp eax, dword [ebp - 0xc]
jg 0x50e7cf
cmp eax, 1
jl 0x50e7cf
push ebx
call fcn.00538100
inc eax
add esp, 4
mov dword [esi + 0x64], eax
cmp eax, dword [ebp - 0x10]
jg 0x50e7b1
cmp eax, 1
jl 0x50e7b1
cmp dword [esi + 0x60], 1
jne 0x50e493
cmp eax, 1
jne 0x50e493
mov edx, dword [ebp + 0x10]
push str.IHW265D_Decode_:_num_tile_columns_and_num_tile_rows_should_not_be_both_equal_to_1__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0xc
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00538060
xor ecx, ecx
add esp, 4
mov dword [esi + 0x68], eax
cmp eax, ecx
jne 0x50e612
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x60]
xor eax, eax
dec ecx
mov dword [ebp + 8], eax
test ecx, ecx
jle 0x50e51d
lea esp, [esp]
push ebx
call fcn.00538100
mov ecx, dword [edi + 0x4f7c]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [ecx + eax*4], edx
mov edx, dword [edi + 0x4f7c]
lea ecx, [edx + eax*4]
mov eax, dword [ecx]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
imul eax, edx
add esp, 4
cmp eax, 0x100
jge 0x50e50e
mov eax, dword [ecx]
mov ecx, dword [ebp + 8]
imul eax, edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push str.IHW265D_Decode_:_column_width__d__of_tile_is__d__it_should_be_bigger_than_256__n
push 1
push edx
call dword [ebp + 0x14]
add esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x60]
inc eax
dec ecx
mov dword [ebp + 8], eax
cmp eax, ecx
jl 0x50e4c0
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 4]
mov edx, dword [edi + 0x4f7c]
mov dword [edx + eax*4], ecx
mov ecx, dword [edi + 0x4f7c]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
jg 0x50e558
mov edx, dword [ebp + 0x10]
push ecx
push eax
push str.IHW265D_Decode_:_column_width__d__of_tile_is__d__it_should_be_bigger_than_0__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x14
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x64]
xor eax, eax
dec ecx
mov dword [ebp - 4], 0
mov dword [ebp + 8], eax
test ecx, ecx
jle 0x50e5cd
lea esp, [esp]
push ebx
call fcn.00538100
mov edx, dword [edi + 0x4f80]
mov ecx, dword [ebp + 8]
inc eax
mov dword [edx + ecx*4], eax
mov eax, dword [edi + 0x4f80]
mov eax, dword [eax + ecx*4]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
imul eax, edx
add esp, 4
cmp eax, 0x40
jge 0x50e5bf
mov eax, dword [edi + 0x4f80]
mov eax, dword [eax + ecx*4]
imul eax, edx
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push str.IHW265D_Decode_:_row_height__d__of_tile_is__d__it_should_be_bigger_than_64__n
push 1
push ecx
call dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
add esp, 0x14
mov edx, dword [esi + 0x64]
inc ecx
dec edx
mov dword [ebp + 8], ecx
cmp ecx, edx
jl 0x50e570
mov eax, ecx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 4]
mov edx, dword [edi + 0x4f80]
mov dword [edx + eax*4], ecx
mov ecx, dword [edi + 0x4f80]
cmp dword [ecx + eax*4], 0
jg 0x50e6f7
mov ecx, dword [ecx + eax*4]
imul ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
push ecx
push eax
push str.IHW265D_Decode_:_row_height__d__of_tile_is__d__it_should_be_bigger_than_64__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x14
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], ecx
cmp dword [esi + 0x60], ecx
jle 0x50e682
mov dword [ebp - 4], ecx
lea ecx, [ecx]
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi + 0x60]
add eax, ecx
cdq
idiv ebx
mov dword [ebp - 0x14], eax
mov eax, ecx
cdq
idiv ebx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
mov edx, dword [edi + 0x4f7c]
sub ecx, eax
mov dword [edx + ebx*4], ecx
mov eax, dword [edi + 0x4f7c]
mov eax, dword [eax + ebx*4]
imul eax, dword [ebp - 8]
cmp eax, 0x100
jge 0x50e66b
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push str.IHW265D_Decode_:_column_width__d__of_tile_is__d__it_should_be_bigger_than_256__n
push 1
push ecx
call dword [ebp + 0x14]
add esp, 0x14
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
inc ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0x60]
jl 0x50e620
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp dword [esi + 0x64], ecx
jle 0x50e6f7
mov dword [ebp - 0xc], ecx
lea ecx, [ecx]
mov edx, dword [ebp - 0x10]
mov ebx, dword [esi + 0x64]
lea eax, [ecx + edx]
cdq
idiv ebx
mov dword [ebp - 0x14], eax
mov eax, ecx
cdq
idiv ebx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
sub ecx, eax
mov eax, dword [edi + 0x4f80]
mov dword [eax + ebx*4], ecx
mov ecx, dword [edi + 0x4f80]
mov edx, dword [ecx + ebx*4]
mov eax, dword [ebp - 8]
imul edx, eax
cmp edx, 0x40
jge 0x50e6e2
mov edx, dword [ecx + ebx*4]
imul edx, eax
mov eax, dword [ebp + 0x10]
push edx
push ebx
push str.IHW265D_Decode_:_row_height__d__of_tile_is__d__it_should_be_bigger_than_64__n
push 1
push eax
call dword [ebp + 0x14]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x10]
inc ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], ecx
cmp ebx, dword [esi + 0x64]
jl 0x50e690
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00538060
add esp, 4
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 8]
mov ecx, dword [edi + eax*4 + 0x4e38]
push esi
push ecx
push edi
call fcn.00519380
push ebx
call fcn.00538060
push ebx
mov dword [esi + 0x6c], eax
call fcn.00538060
xor ecx, ecx
add esp, 0x14
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], ecx
cmp eax, ecx
je 0x50e7f8
push ebx
call fcn.00538060
push ebx
mov dword [esi + 0x74], eax
call fcn.00538060
add esp, 8
mov dword [esi + 0x78], eax
test eax, eax
jne 0x50e7f8
push ebx
call fcn.00538150
add eax, eax
push ebx
mov dword [esi + 0x7c], eax
call fcn.00538150
mov ecx, dword [esi + 0x7c]
add eax, eax
add esp, 8
mov dword [esi + 0x80], eax
cmp ecx, 0xfffffff4
jl 0x50e7ed
cmp ecx, 0xc
jg 0x50e7ed
cmp eax, 0xfffffff4
jl 0x50e793
cmp eax, 0xc
jle 0x50e7f8
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_pps_tc_offset_is__d_it_should_be_in_the_range_of__1212__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_num_tile_rows_is__d_it_should_not_be_bigger_than_iPicHeightInCtbsY__n
push 0
push ecx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_num_tile_columns_is__d_it_should_not_be_bigger_than_iPicWidthInCtbsY__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push str.IHW265D_Decode_:_the_value_of_pps_beta_offset_is__d_it_should_be_in_the_range_of__1212__n
jmp 0x50e1f8
push ebx
call fcn.00538060
mov ecx, dword [esi + 8]
mov dword [esi + 0x84], eax
mov edx, dword [edi + ecx*4 + 0x4e38]
add esp, 4
cmp dword [edx + 0x5ec], 0
jne 0x50e829
test eax, eax
je 0x50e84d
push eax
push str.IHW265D_Decode_:_the_value_of_pps_scaling_list_data_present_flag_is__d_it_should_be_equal_to_0_when_scaling_list_enabled_flag_is_equal_to_0__n
jmp 0x50e1f8
test eax, eax
je 0x50e84d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
lea eax, [esi + 0x88]
push eax
push ebx
call fcn.0050eed0
add esp, 0x10
test eax, eax
jne 0x50e204
mov ecx, dword [esi + 8]
mov edx, dword [edi + ecx*4 + 0x4e38]
push edx
mov eax, esi
call fcn.0050dfe0
push ebx
call fcn.00538060
push ebx
mov dword [esi + 0x6c4], eax
call fcn.00538100
add eax, 2
add esp, 0xc
mov dword [esi + 0x6c8], eax
cmp eax, 2
jb 0x50e909
mov ecx, dword [esi + 8]
mov edi, dword [edi + ecx*4 + 0x4e38]
mov edx, dword [edi + 0x5d8]
add edx, dword [edi + 0x5d4]
cmp eax, edx
ja 0x50e909
push ebx
call fcn.00538060
add esp, 4
mov dword [esi + 0x6cc], eax
test eax, eax
je 0x50e8c5
push eax
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_The_value_of_slice_segment_header_extension_present_flag_is__d__it_should_be_equal_to_0__n
push 1
push eax
call dword [ebp + 0x14]
add esp, 0x10
push ebx
call fcn.00538060
add esp, 4
mov dword [esi + 0x6d0], eax
test eax, eax
je 0x50e8fa
push ebx
call fcn.00538090
add esp, 4
test eax, eax
je 0x50e8fa
push 1
push ebx
call fcn.00538030
push ebx
call fcn.00538090
add esp, 0xc
test eax, eax
jne 0x50e8e5
mov dword [esi], 1
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_log2_parallel_merge_level_is__d_it_should_not_be_bigger_than_CtbLog2SizeY__n
push 0
push ecx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_pps_cr_qp_offset_is__d__it_should_be_in_the_range_of__12_to_12__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.IHW265D_Decode_:_the_value_of_pps_cb_qp_offset_is__d__it_should_be_in_the_range_of__12_to_12__n
jmp 0x50e1f8
mov ecx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_init_qp_minus26_is__d__it_should_be_in_the_range_of__26_to_25__n
push 0
push ecx
call dword [ebp + 0x14]
add esp, 0x10
pop esi
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_the_value_of_pps_pic_parameter_set_id_is__d__it_should_be_less_than_64___n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x10
pop edi
mov eax, 0xf0404004
pop ebx
mov esp, ebp
pop ebp
ret