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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x4824], 0x10
jge 0x1400f4e12
mov rcx, qword [rsp + 0x60]
call fcn.1400f4860
nop
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.1400f4970
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400f4e33
cmp dword [rsp + 0x30], 0xf
jle 0x1400f4e44
lea rcx, str.bad_huffman_code
call fcn.1400f1aa0
jmp 0x1400f514e
mov rdi, qword [rsp + 0x68]
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
cmp dword [rsp + 0x30], 0
je 0x1400f4e6d
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.1400f4b80
mov dword [rsp + 0x3c], eax
jmp 0x1400f4e75
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0x60
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + rax + 0x46b8]
call fcn.1400f1e30
test eax, eax
jne 0x1400f4eb3
lea rcx, str.bad_delta
call fcn.1400f1aa0
jmp 0x1400f514e
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x46b8]
add eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x88]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x60]
mov edx, dword [rsp + 0x38]
mov dword [rcx + rax + 0x46b8], edx
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x90]
movzx edx, word [rcx + rax]
movzx ecx, word [rsp + 0x38]
call fcn.1400f1ee0
test eax, eax
jne 0x1400f4f23
lea rcx, str.cant_merge_dc_and_ac
call fcn.1400f1aa0
jmp 0x1400f514e
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax]
mov ecx, dword [rsp + 0x38]
imul ecx, eax
mov eax, ecx
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x68]
mov word [rdx + rcx], ax
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x4824], 0x10
jge 0x1400f4f74
mov rcx, qword [rsp + 0x60]
call fcn.1400f4860
nop
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x4820]
shr eax, 0x17
and eax, 0x1ff
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400f5079
mov eax, dword [rsp + 0x24]
sar eax, 4
and eax, 0xf
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
and eax, 0xf
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x4824]
cmp dword [rsp + 0x28], eax
jle 0x1400f4fee
lea rcx, str.bad_huffman_code
call fcn.1400f1aa0
jmp 0x1400f514e
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x28]
shlx eax, dword [rax + 0x4820], ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x4820], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax + 0x4824]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x4824], eax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x140156700]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
sar eax, 8
mov ecx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x90]
movzx ecx, word [rdx + rcx*2]
imul eax, ecx
mov ecx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x68]
mov word [rdx + rcx*2], ax
jmp 0x1400f513e
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.1400f4970
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x1400f50a4
lea rcx, str.bad_huffman_code
call fcn.1400f1aa0
jmp 0x1400f514e
mov eax, dword [rsp + 0x34]
and eax, 0xf
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x34]
sar eax, 4
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x28], 0
jne 0x1400f50da
cmp dword [rsp + 0x34], 0xf0
je 0x1400f50cd
jmp 0x1400f5149
mov eax, dword [rsp + 0x20]
add eax, 0x10
mov dword [rsp + 0x20], eax
jmp 0x1400f513e
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x140156700]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x2c], eax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.1400f4b80
mov ecx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x90]
movzx ecx, word [rdx + rcx*2]
imul eax, ecx
mov ecx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x68]
mov word [rdx + rcx*2], ax
cmp dword [rsp + 0x20], 0x40
jl 0x1400f4f5b
mov eax, 1
add rsp, 0x50
pop rdi
ret