Function at 0x18020edb0
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, 0xa0
lea rcx, [0x180606fa6]
call fcn.180278fb0
nop
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x4834], 0
jne 0x18020edfb
lea rcx, str.cant_merge_dc_and_ac
call fcn.18020c770
jmp 0x18020f494
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x483c], 0
jne 0x18020f12c
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4840]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x4844], 0
je 0x18020ee5b
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4844]
dec eax
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4844], eax
mov eax, 1
jmp 0x18020f494
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4834]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x4824], 0x10
jge 0x18020ee8c
mov rcx, qword [rsp + 0xb0]
call fcn.18020e180
nop
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4820]
shr eax, 0x17
and eax, 0x1ff
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0xc8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18020efaf
mov eax, dword [rsp + 0x30]
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 + 0x30]
and eax, 0xf
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4824]
cmp dword [rsp + 0x34], eax
jle 0x18020ef0c
lea rcx, [0x1804ab660]
call fcn.18020c770
jmp 0x18020f494
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rcx
movzx ecx, al
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x4820]
shl eax, cl
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4820], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + 0x4824]
sub eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4824], eax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x1804ab530]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x30]
sar eax, 8
mov ecx, dword [rsp + 0x24]
mov edx, 1
shl edx, cl
mov ecx, edx
imul eax, ecx
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xb8]
mov word [rdx + rcx*2], ax
jmp 0x18020f10f
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
call fcn.18020e2a0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x18020efe0
lea rcx, [0x1804ab678]
call fcn.18020c770
jmp 0x18020f494
mov eax, dword [rsp + 0x38]
and eax, 0xf
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
sar eax, 4
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x34], 0
jne 0x18020f0a8
cmp dword [rsp + 0x30], 0xf
jge 0x18020f09b
mov eax, dword [rsp + 0x30]
mov ecx, 1
mov dword [rsp + 0x6c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x6c]
shl eax, cl
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4844], eax
cmp dword [rsp + 0x30], 0
je 0x18020f078
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.18020e670
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4844]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4844], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4844]
dec eax
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4844], eax
jmp 0x18020f127
mov eax, dword [rsp + 0x20]
add eax, 0x10
mov dword [rsp + 0x20], eax
jmp 0x18020f10f
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x1804ab530]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xb0]
call fcn.18020e570
mov ecx, dword [rsp + 0x24]
mov edx, 1
shl edx, cl
mov ecx, edx
imul eax, ecx
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0xb8]
mov word [rdx + rcx*2], ax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4838]
cmp dword [rsp + 0x20], eax
jle 0x18020ee6d
jmp 0x18020f48f
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4840]
mov ecx, 1
mov dword [rsp + 0x7c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x7c]
shl eax, cl
mov word [rsp + 0x3c], ax
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x4844], 0
je 0x18020f255
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4844]
dec eax
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4844], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4834]
mov dword [rsp + 0x20], eax
jmp 0x18020f1a2
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4838]
cmp dword [rsp + 0x20], eax
jg 0x18020f250
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x1804ab530]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsx eax, word [rax]
test eax, eax
je 0x18020f24b
mov rcx, qword [rsp + 0xb0]
call fcn.18020e740
test eax, eax
je 0x18020f24b
mov rax, qword [rsp + 0x40]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x3c]
and eax, ecx
test eax, eax
jne 0x18020f24b
mov rax, qword [rsp + 0x40]
movsx eax, word [rax]
test eax, eax
jle 0x18020f232
movsx eax, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
movsx ecx, word [rcx]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
jmp 0x18020f24b
movsx eax, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x40]
movsx ecx, word [rcx]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
jmp 0x18020f198
jmp 0x18020f48f
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4834]
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
call fcn.18020e2a0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18020f298
lea rcx, [0x1804ab690]
call fcn.18020c770
jmp 0x18020f494
mov eax, dword [rsp + 0x50]
and eax, 0xf
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
sar eax, 4
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x4c], 0
jne 0x18020f34e
cmp dword [rsp + 0x48], 0xf
jge 0x18020f34c
mov eax, dword [rsp + 0x48]
mov ecx, 1
mov dword [rsp + 0x80], ecx
movzx ecx, al
mov eax, dword [rsp + 0x80]
shl eax, cl
dec eax
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4844], eax
cmp dword [rsp + 0x48], 0
je 0x18020f344
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call fcn.18020e670
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4844]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x84]
mov ecx, dword [rsp + 0x88]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x4844], eax
mov dword [rsp + 0x48], 0x40
jmp 0x18020f38d
cmp dword [rsp + 0x4c], 1
je 0x18020f366
lea rcx, str.bad_huffman_code
call fcn.18020c770
jmp 0x18020f494
mov rcx, qword [rsp + 0xb0]
call fcn.18020e740
test eax, eax
je 0x18020f382
movsx eax, word [rsp + 0x3c]
mov dword [rsp + 0x4c], eax
jmp 0x18020f38d
movsx eax, word [rsp + 0x3c]
neg eax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4838]
cmp dword [rsp + 0x20], eax
jg 0x18020f477
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x1804ab530]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsx eax, word [rax]
test eax, eax
je 0x18020f452
mov rcx, qword [rsp + 0xb0]
call fcn.18020e740
test eax, eax
je 0x18020f450
mov rax, qword [rsp + 0x58]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x3c]
and eax, ecx
test eax, eax
jne 0x18020f450
mov rax, qword [rsp + 0x58]
movsx eax, word [rax]
test eax, eax
jle 0x18020f437
movsx eax, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
movsx ecx, word [rcx]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
jmp 0x18020f450
movsx eax, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
movsx ecx, word [rcx]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
jmp 0x18020f472
cmp dword [rsp + 0x48], 0
jne 0x18020f468
mov rax, qword [rsp + 0x58]
movzx ecx, word [rsp + 0x4c]
mov word [rax], cx
jmp 0x18020f477
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
jmp 0x18020f38d
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x4838]
cmp dword [rsp + 0x20], eax
jle 0x18020f267
mov eax, 1
add rsp, 0xa0
pop rdi
ret