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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
push 4
push edi
call fcn.00537ff0
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + eax*4 + 0x4df8]
push 2
push edi
mov dword [esi], 0
mov dword [esi + 4], eax
call fcn.00537ff0
push 6
push edi
call fcn.00537ff0
push 3
push edi
mov dword [esi + 8], eax
call fcn.00537ff0
add esp, 0x20
mov dword [esi + 0xc], eax
cmp eax, 6
jbe 0x511044
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_value_of_vps_max_sub_layers_minus1_is__d__which_should_be_in_the_range_of_06__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x10
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret
push ebx
push 1
push edi
call fcn.00537ff0
add esp, 8
cmp dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
jne 0x511074
cmp eax, 1
je 0x511074
mov ebx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_when_vps_max_sub_layers_minus1_is_equal_to_0_The_value_of_vps_temporal_id_nesting_flag_should_be_equal_to_1__but_now_it_is__d__n
push 1
push eax
call ebx
add esp, 0x10
jmp 0x511077
mov ebx, dword [ebp + 0x14]
push 0x10
push edi
call fcn.00537ff0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xc]
push ebx
push ecx
push edx
lea eax, [esi + 0x14]
push eax
push edi
call fcn.00510730
add esp, 0x1c
test eax, eax
jne 0x5114c3
push 1
push edi
call fcn.00537ff0
add esp, 8
mov dword [esi + 0x54c], eax
test eax, eax
je 0x5110b9
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x5110c1
mov ecx, dword [esi + 0xc]
mov dword [ebp + 8], ecx
mov eax, ecx
cmp eax, dword [esi + 0xc]
ja 0x51112a
lea ebx, [esi + eax*4 + 0x550]
lea ecx, [ecx]
push edi
call fcn.00538100
inc eax
add esp, 4
mov dword [ebx], eax
cmp eax, 0x11
ja 0x5111ac
cmp eax, 1
jb 0x5111ac
push edi
call fcn.00538100
mov edx, dword [ebx]
dec edx
add esp, 4
mov dword [ebx + 0x1c], eax
cmp eax, edx
ja 0x51116d
push edi
call fcn.00538100
add esp, 4
xor ecx, ecx
ja 0x51118d
jb 0x511115
cmp eax, 0xffffffff
jae 0x51118d
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 8]
inc eax
add ebx, 4
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0xc]
jbe 0x5110d0
mov ebx, dword [ebp + 0x14]
push 6
push edi
call fcn.00537ff0
push edi
mov dword [esi + 0x5a4], eax
call fcn.00538100
add esp, 0xc
mov dword [esi + 0x5a8], eax
cmp eax, 0x3ff
jbe 0x5111ce
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_value_of_vps_num_layer_sets_minus1_is__d__it_should_be_in_the_range_of_01023__n
push 0
push edx
call ebx
add esp, 0x10
pop ebx
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
push eax
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_The_value_of_vps_num_reorder_pics__d__is_bigger_than__vps_max_dec_pic_buffering__d__1__n
push 0
push eax
call dword [ebp + 0x14]
add esp, 0x14
pop ebx
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ecx
push str.IHW265D_Decode_:_The_value_of_vps_max_latency_increase_plus1__d__is_out_of_the_range_of_0232_1__n
push 0
push edx
call dword [ebp + 0x14]
add esp, 0x10
pop ebx
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push 0x12
push eax
mov eax, dword [ebp + 8]
push eax
push str.IHW265D_Decode_:_The_value_of_vps_max_dec_pic_buffering__d__is__d__should_be_in_the_range_of_1___d__n
push 0
push ecx
call dword [ebp + 0x14]
add esp, 0x18
pop ebx
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret
test eax, eax
je 0x5111e3
push eax
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_The_value_of_vps_num_layer_sets_minus1_is__d__it_should_be_equal_to_0__n
push 1
push eax
call ebx
add esp, 0x10
mov eax, 1
mov dword [ebp + 8], eax
cmp dword [esi + 0x5a8], eax
jb 0x511216
xor ebx, ebx
push edi
call fcn.00538060
inc ebx
add esp, 4
cmp ebx, dword [esi + 0x5a4]
jbe 0x5111f5
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x5a8]
jbe 0x5111f3
xor eax, eax
mov dword [esi + 0x5d4], eax
mov dword [esi + 0x5e0], eax
mov eax, 0x17
mov dword [esi + 0x5f4], eax
mov dword [esi + 0x5f8], eax
mov dword [esi + 0x5fc], eax
lea eax, [esi + 0x1a0c]
lea edx, [esi + 0x654]
mov ebx, 7
lea esp, [esp]
xor ecx, ecx
mov dword [edx - 0x54], ecx
mov dword [edx], ecx
mov dword [edx + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
add edx, 4
add eax, 0x280
dec ebx
jne 0x511250
push edi
mov dword [esi + 0x5b0], 0x3e9
mov dword [esi + 0x5b4], 0xea60
call fcn.00538060
add esp, 4
mov dword [esi + 0x5ac], eax
test eax, eax
je 0x511471
push 0x20
push edi
call fcn.00537ff0
mov ebx, dword [ebp + 0x14]
add esp, 8
mov dword [esi + 0x5b0], eax
test eax, eax
jne 0x511318
mov ecx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_value_of_vps_num_units_in_tick_is__d__should_be_bigger_than_0__n
push 1
push ecx
call ebx
add esp, 0x10
push 0x20
push edi
call fcn.00537ff0
add esp, 8
mov dword [esi + 0x5b4], eax
test eax, eax
jne 0x51133e
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_value_of_vps_time_scale_is__d__should_be_bigger_than_0__n
push 1
push edx
call ebx
add esp, 0x10
push edi
call fcn.00538060
add esp, 4
mov dword [esi + 0x5b8], eax
test eax, eax
je 0x511383
push edi
call fcn.00538100
add esp, 4
xor ecx, ecx
ja 0x511363
cmp eax, 0xffffffff
jb 0x51137d
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_The_value_of_vps_num_ticks_poc_diff_one_minus1_is_out_of_the_range_of_0232_1__n
push 0
push eax
call ebx
add esp, 0xc
pop ebx
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret
mov dword [esi + 0x5bc], eax
push edi
call fcn.00538100
add esp, 4
mov dword [esi + 0x5c0], eax
cmp eax, 0x400
jbe 0x5113b4
mov ecx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_value_of_vps_num_hrd_parameters_is__d__it_should_be_in_the_range_of_01024__n
push 0
push ecx
call ebx
add esp, 0x10
pop ebx
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret
cmp eax, 1
jbe 0x5113ca
mov edx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_value_of_vps_num_hrd_parameters_is__d__it_should_not_be_bigger_than_1__n
push 1
push edx
call ebx
add esp, 0x10
cmp dword [esi + 0x5c0], 0
mov dword [ebp + 8], 0
jbe 0x511471
mov edi, edi
push edi
call fcn.00538100
add esp, 4
mov dword [esi + 0x5c4], eax
cmp eax, 0x3ff
ja 0x5114b2
test eax, eax
je 0x51140f
push eax
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_The_value_of_hrd_layer_set_idx_is__d__it_should_be_equal_to_0__n
push 1
push eax
call ebx
add esp, 0x10
push edi
call fcn.00538060
add esp, 4
cmp dword [ebp + 8], 0
mov dword [esi + 0x5c8], eax
jne 0x51143a
cmp eax, 1
je 0x51143a
mov ecx, dword [ebp + 0x10]
push eax
push str.IHW265D_Decode_:_The_value_of_cprms_present_flag_0__is__d__should_be_equal_to_1__n
push 1
push ecx
call ebx
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x5c8]
push ebx
push edx
push eax
push ecx
lea edx, [esi + 0x5cc]
push edi
push edx
call fcn.00510970
add esp, 0x18
test eax, eax
jne 0x5114c3
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x5c0]
jb 0x5113e0
push edi
call fcn.00538060
add esp, 4
test eax, eax
je 0x5114a5
push edi
call fcn.00538090
add esp, 4
test eax, eax
je 0x5114a5
jmp 0x511490
push 1
push edi
call fcn.00538030
push edi
call fcn.00538090
add esp, 0xc
test eax, eax
jne 0x511490
pop ebx
pop edi
mov dword [esi], 1
xor eax, eax
pop esi
pop ebp
ret
push eax
mov eax, dword [ebp + 0x10]
push str.IHW265D_Decode_:_The_value_of_hrd_layer_set_idx_is__d__it_should_be_in_the_range_of_01023__n
push 0
push eax
call ebx
add esp, 0x10
pop ebx
pop edi
mov eax, 0xf0404002
pop esi
pop ebp
ret