Function at 0x519880
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
push ebx
push esi
push edi
lea edi, [ebp - 0x1c0]
mov ecx, 0x70
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
push 0xe0
call fcn.005137f0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5198d5
jmp 0x51a8b4
mov eax, 0xf
mov word [ebp - 0x98], ax
mov eax, 0xf
mov word [ebp - 0xa4], ax
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 8]
mov dword [eax], 0
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 0x10]
mov word [eax + 0x30], dx
mov dword [ebp - 0xd4], 1
mov dword [ebp - 0xe0], 1
mov dword [ebp - 0x80], 0
jmp 0x519998
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [eax + 0x10]
jge 0x519a83
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x80]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ebp - 0x80]
mov ecx, dword [ecx + esi*4]
mov edx, dword [edx + 0x10]
imul edx, dword [ecx + 8]
mov eax, dword [eax]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x80]
mov edx, dword [edx + ecx*4]
add eax, dword [edx + 8]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
jle 0x519a34
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x80]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ebp - 0x80]
mov ecx, dword [ecx + esi*4]
mov edx, dword [edx + 0x14]
imul edx, dword [ecx + 0xc]
mov eax, dword [eax + 4]
add eax, edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x80]
mov edx, dword [edx + ecx*4]
add eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
jg 0x519a46
push str.unsupported_image_type_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0xd4]
imul ecx, dword [eax + 8]
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0xe0]
imul ecx, dword [eax + 0xc]
mov dword [ebp - 0xe0], ecx
jmp 0x51998f
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x30]
imul ecx, ecx, 0xd8
push ecx
call fcn.005137f0
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0
jne 0x519aad
jmp 0x51a8b4
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x74], ecx
jmp 0x519ad4
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x74]
add ecx, 0xd8
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x30]
cmp dword [ebp - 0x80], ecx
jge 0x519b69
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x74]
mov dl, byte [eax + 8]
mov byte [ecx], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x74]
mov dl, byte [eax + 0xc]
mov byte [ecx + 1], dl
mov eax, dword [ebp - 0x74]
mov byte [eax + 2], 0
mov eax, dword [ebp - 0x74]
mov byte [eax + 2], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x74]
mov dl, byte [eax + 0x18]
mov byte [ecx + 4], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x74]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 8], edx
xor eax, eax
mov ecx, dword [ebp - 0x74]
mov word [ecx + 0xc], ax
push 0xc8
push 0
mov eax, dword [ebp - 0x74]
add eax, 0xe
push eax
call fcn.0055c8d0
add esp, 0xc
jmp 0x519abf
mov eax, dword [ebp + 0xc]
push eax
call fcn.0050dab0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xdc], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0xd8], 0xffffffff
mov eax, dword [ebp - 8]
add eax, 0x38
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x5c]
mov dword [eax], 1
mov eax, dword [ebp - 0x5c]
mov byte [eax + 5], 0
mov eax, 1
mov ecx, dword [ebp - 0x5c]
mov word [ecx + 8], ax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 8]
add eax, 0x48
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov byte [eax], 0
mov eax, dword [ebp - 0x68]
mov byte [eax + 1], 6
mov eax, 6
mov ecx, dword [ebp - 0x68]
mov word [ecx + 2], ax
mov eax, 6
mov ecx, dword [ebp - 0x68]
mov word [ecx + 4], ax
mov eax, dword [ebp - 0x68]
mov byte [eax + 6], 0
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x8c], 2
cmp dword [ebp + 8], 0
je 0x519c11
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
jmp 0x519c1b
mov dword [ebp - 0x1b4], 0x5e58f6
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.00536550
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x519c38
jmp 0x51a8b4
mov eax, dword [ebp - 0x14]
push eax
call fcn.00536650
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x51a119
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368a0
add esp, 4
push eax
push 0x637ec0
call fcn.00536900
add esp, 8
push eax
call fcn.00536970
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x1b4], ecx
cmp dword [ebp - 0x1b4], 0x1a
ja case.default.0x519c8f
mov edx, dword [ebp - 0x1b4]
jmp dword [edx*4 + 0x51a94c]
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
push eax
call fcn.00536fa0
add esp, 4
mov word [ebp - 0x98], ax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
push eax
call fcn.00536fa0
add esp, 4
mov word [ebp - 0xa4], ax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
push eax
call fcn.00536fa0
add esp, 4
mov ecx, dword [ebp - 0x68]
mov word [ecx + 2], ax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
push eax
call fcn.00536fa0
add esp, 4
mov ecx, dword [ebp - 0x68]
mov word [ecx + 4], ax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
push eax
push 0x637fd0
call fcn.00536900
add esp, 8
push eax
call fcn.00536970
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
jge 0x519ed5
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
push eax
push str.ignoring_invalid_mode__s_n
call fcn.00535280
add esp, 8
jmp 0x519ee3
xor eax, eax
cmp dword [ebp - 0x50], 0
sete al
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
push eax
push 0x637fa0
call fcn.00536900
add esp, 8
push eax
call fcn.00536970
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
jge 0x519f32
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
push eax
push str.ignoring_invalid_progression_order__s_n
call fcn.00535280
add esp, 8
jmp 0x519f3b
mov eax, dword [ebp - 0x5c]
mov cl, byte [ebp - 0x50]
mov byte [eax + 5], cl
jmp 0x51a114
mov dword [ebp - 0xb0], 0
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 0x68]
mov byte [ecx + 1], al
jmp 0x51a114
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3c]
or ecx, 2
mov edx, dword [ebp - 8]
mov byte [edx + 0x3c], cl
jmp 0x51a114
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3c]
or ecx, 4
mov edx, dword [ebp - 8]
mov byte [edx + 0x3c], cl
jmp 0x51a114
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 6]
or ecx, 1
mov edx, dword [ebp - 0x68]
mov byte [edx + 6], cl
jmp 0x51a114
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 6]
or ecx, 4
mov edx, dword [ebp - 0x68]
mov byte [edx + 6], cl
jmp 0x51a114
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 6]
or ecx, 0x20
mov edx, dword [ebp - 0x68]
mov byte [edx + 6], cl
jmp 0x51a114
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 6]
or ecx, 8
mov edx, dword [ebp - 0x68]
mov byte [edx + 6], cl
jmp 0x51a114
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 6]
or ecx, 2
mov edx, dword [ebp - 0x68]
mov byte [edx + 6], cl
jmp 0x51a114
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax + 6]
or ecx, 0x10
mov edx, dword [ebp - 0x68]
mov byte [edx + 6], cl
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov ecx, dword [ebp - 8]
mov byte [ecx + 0xd4], al
jmp 0x51a114
mov eax, dword [ebp - 8]
add eax, 0xd8
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xdc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
push eax
call fcn.0051aa30
add esp, 0xc
test eax, eax
je 0x51a094
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
push eax
push str.ignoring_bad_rate_specifier__s_n
call fcn.00535280
add esp, 8
jmp 0x51a114
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.005368d0
add esp, 4
push eax
call fcn.005369c0
add esp, 0xc
test eax, eax
je 0x51a0d1
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
push eax
push str.warning:_invalid_intermediate_layer_rates_specifier_ignored___s__n
call fcn.00535280
add esp, 8
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368d0
add esp, 4
mov esi, esp
push eax
call dword [0x5e4454]
add esp, 4
cmp esi, esp
call fcn.0055ce6c
mov dword [ebp - 0xbc], eax
jmp 0x51a114
mov eax, dword [ebp - 0x14]
push eax
call fcn.005368a0
add esp, 4
push eax
push str.warning:_ignoring_invalid_option__s_n
call fcn.00535280
add esp, 8
jmp 0x519c38
mov eax, dword [ebp - 0x14]
push eax
call fcn.005365f0
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd8], 0xffffffff
je 0x51a179
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd8]
cmp ecx, dword [ebp - 0xbc]
jbe 0x51a160
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd8]
sub eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1b4], eax
jmp 0x51a16a
mov dword [ebp - 0x1b4], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1b4]
mov dword [ecx + 0xd8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
jne 0x51a18e
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
jmp 0x51a1b7
cmp dword [ebp - 0xd4], 1
je 0x51a1a4
push str.warning:_overriding_imgareatlx_value_n
call fcn.00535280
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
imul ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xffffffff
jne 0x51a1cc
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
jmp 0x51a1f5
cmp dword [ebp - 0xe0], 1
je 0x51a1e2
push str.warning:_overriding_imgareatly_value_n
call fcn.00535280
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
imul ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
mov eax, dword [ebp - 8]
add edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
add edx, dword [eax + 8]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0xffffffff
jne 0x51a239
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0xffffffff
jne 0x51a24e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c], 0
jne 0x51a269
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
jne 0x51a284
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x30]
cmp ecx, 3
jne 0x51a33c
mov dword [ebp - 0xec], 1
mov dword [ebp - 0x80], 0
jmp 0x51a2b0
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [eax + 0x10]
jge 0x51a33a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jne 0x51a32b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx]
mov edx, dword [eax + 0x1c]
cmp edx, dword [ecx + 0x1c]
jne 0x51a32b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx]
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0x10]
jne 0x51a32b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx]
mov edx, dword [eax + 0x14]
cmp edx, dword [ecx + 0x14]
je 0x51a335
mov dword [ebp - 0xec], 0
jmp 0x51a2a7
jmp 0x51a346
mov dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 0
je 0x51a373
cmp dword [ebp - 0xb0], 0
je 0x51a373
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
sar ecx, 8
cmp ecx, 4
je 0x51a373
push str.warning:_color_space_apparently_not_RGB_n
call fcn.00535280
add esp, 4
cmp dword [ebp - 0xec], 0
je 0x51a3a9
cmp dword [ebp - 0xb0], 0
je 0x51a3a9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
sar ecx, 8
cmp ecx, 4
jne 0x51a3a9
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
cmp dword [eax], 0
setne cl
add ecx, 1
mov edx, dword [ebp - 0x5c]
mov byte [edx + 6], cl
jmp 0x51a3b0
mov eax, dword [ebp - 0x5c]
mov byte [eax + 6], 0
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
cmp dword [eax], 0
setne cl
mov edx, dword [ebp - 0x68]
mov byte [edx + 7], cl
xor eax, eax
mov word [ebp - 0x8c], ax
jmp 0x51a3de
mov ax, word [ebp - 0x8c]
add ax, 1
mov word [ebp - 0x8c], ax
movzx eax, word [ebp - 0x8c]
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 1]
cmp eax, edx
jge 0x51a41e
movzx eax, word [ebp - 0x8c]
mov ecx, dword [ebp - 0x68]
mov dx, word [ebp - 0x98]
mov word [ecx + eax*2 + 8], dx
movzx eax, word [ebp - 0x8c]
mov ecx, dword [ebp - 0x68]
mov dx, word [ebp - 0xa4]
mov word [ecx + eax*2 + 0x4a], dx
jmp 0x51a3cc
movzx eax, word [ebp - 0x98]
cmp eax, 0xf
jne 0x51a436
movzx eax, word [ebp - 0xa4]
cmp eax, 0xf
je 0x51a444
mov eax, dword [ebp - 0x68]
movzx ecx, byte [eax]
or ecx, 1
mov edx, dword [ebp - 0x68]
mov byte [edx], cl
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c], 0
jne 0x51a466
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
push str.invalid_tile_width__lu_n
call fcn.00535280
add esp, 8
jmp 0x51a8b4
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
jne 0x51a488
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
push str.invalid_tile_height__lu_n
call fcn.00535280
add esp, 8
jmp 0x51a8b4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x14]
cmp edx, dword [ecx + 4]
ja 0x51a4cc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 8]
ja 0x51a4cc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jb 0x51a4cc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x20]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x51a4ec
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
push 0x5f5ea8
call fcn.00535280
add esp, 0xc
jmp 0x51a8b4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
lea eax, [edx + ecx - 1]
mov ecx, dword [ebp - 8]
xor edx, edx
div dword [ecx + 0x1c]
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
lea eax, [edx + ecx - 1]
mov ecx, dword [ebp - 8]
xor edx, edx
div dword [ecx + 0x20]
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x24]
imul edx, dword [ecx + 0x28]
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], edx
cmp dword [ebp - 0x38], 0
je 0x51a5d2
cmp dword [ebp - 0x2c], 0
jle 0x51a5d2
mov eax, dword [ebp - 0x2c]
add eax, 1
mov ecx, dword [ebp - 0x5c]
mov word [ecx + 8], ax
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax + 8]
lea edx, [ecx*4 - 4]
push edx
call fcn.005137f0
add esp, 4
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0xc], 0
jne 0x51a58f
jmp 0x51a8b4
mov dword [ebp - 0x44], 0
jmp 0x51a5a1
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax + 8]
sub ecx, 1
cmp dword [ebp - 0x44], ecx
jge 0x51a5d2
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
fld qword [ecx + eax*8]
fmul qword [0x5f5ea0]
call fcn.0055c6e0
mov edx, dword [ebp - 0x5c]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x44]
mov dword [ecx + edx*4], eax
jmp 0x51a598
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd8], 0xffffffff
jne 0x51a5f9
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x51a5f9
push str.cannot_use_real_mode_for_lossless_coding_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
movzx eax, word [ebp - 0x98]
cmp eax, 0xf
jle 0x51a617
push str.invalid_precinct_width_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
movzx eax, word [ebp - 0xa4]
cmp eax, 0xf
jle 0x51a635
push str.invalid_precinct_height_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4a]
cmp ecx, 2
jl 0x51a64d
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4a]
cmp ecx, 0xc
jle 0x51a66e
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4a]
mov edx, 1
shl edx, cl
push edx
push str.invalid_code_block_width__d_n
call fcn.00535280
add esp, 8
jmp 0x51a8b4
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4c]
cmp ecx, 2
jl 0x51a686
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4c]
cmp ecx, 0xc
jle 0x51a6a7
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4c]
mov edx, 1
shl edx, cl
push edx
push str.invalid_code_block_height__d_n
call fcn.00535280
add esp, 8
jmp 0x51a8b4
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x4a]
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x4c]
add ecx, eax
cmp ecx, 0xc
jle 0x51a6ce
push str.code_block_size_too_large_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x40]
cmp ecx, 0x4000
jle 0x51a6ef
push str.too_many_layers_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x49]
cmp ecx, 1
jge 0x51a70d
push str.must_be_at_least_one_resolution_level_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0xd4]
cmp ecx, 8
jle 0x51a72e
push str.invalid_number_of_guard_bits_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd8], 0xffffffff
je 0x51a76f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0xd8]
cmp edx, dword [ecx + 0xdc]
jbe 0x51a76f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xdc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd8]
push eax
push str.warning:_specified_rate_is_unreasonably_large___lu____lu__n
call fcn.00535280
add esp, 0xc
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax + 8]
cmp ecx, 1
jle 0x51a89d
xor eax, eax
mov word [ebp - 0xc8], ax
jmp 0x51a79c
mov ax, word [ebp - 0xc8]
add ax, 1
mov word [ebp - 0xc8], ax
movzx eax, word [ebp - 0xc8]
add eax, 2
mov ecx, dword [ebp - 0x5c]
movzx edx, word [ecx + 8]
cmp eax, edx
jge 0x51a7e8
movzx eax, word [ebp - 0xc8]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0xc]
movzx ecx, word [ebp - 0xc8]
mov esi, dword [ebp - 0x5c]
mov esi, dword [esi + 0xc]
mov edx, dword [edx + eax*4]
cmp edx, dword [esi + ecx*4 + 4]
jl 0x51a7e6
push str.intermediate_layer_rates_must_increase_monotonically_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
jmp 0x51a78a
mov eax, dword [ebp - 8]
cmp dword [eax + 0xd8], 0xffffffff
je 0x51a89d
xor eax, eax
mov word [ebp - 0xc8], ax
jmp 0x51a815
mov ax, word [ebp - 0xc8]
add ax, 1
mov word [ebp - 0xc8], ax
movzx eax, word [ebp - 0xc8]
mov ecx, dword [ebp - 0x5c]
movzx edx, word [ecx + 8]
sub edx, 1
cmp eax, edx
jge 0x51a89d
movzx eax, word [ebp - 0xc8]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0xc]
fild dword [edx + eax*4]
fdiv qword [0x5f5ea0]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x1b4], 0
fild qword [ebp - 0x1b8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xdc]
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], 0
fild qword [ebp - 0x1c0]
fdivp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x51a898
push str.warning:_intermediate_layer_rates_must_be_less_than_overall_rate_n
call fcn.00535280
add esp, 4
jmp 0x51a8b4
jmp 0x51a803
cmp dword [ebp - 0x38], 0
je 0x51a8af
mov eax, dword [ebp - 0x38]
push eax
call fcn.00513840
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x51a8ec
cmp dword [ebp - 0x38], 0
je 0x51a8c6
mov eax, dword [ebp - 0x38]
push eax
call fcn.00513840
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x51a8d8
mov eax, dword [ebp - 0x14]
push eax
call fcn.005365f0
add esp, 4
cmp dword [ebp - 8], 0
je 0x51a8ea
mov eax, dword [ebp - 8]
push eax
call fcn.0051a9c0
add esp, 4
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x51a914]
call fcn.0055ce8f
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x1c0
cmp ebp, esp
call fcn.0055ce6c
mov esp, ebp
pop ebp
ret