Function at 0x543940
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], 0
push 0xe0
call fcn.0052b880
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x54397e
jmp 0x5448da
mov word [ebp - 0x24], 0xf
mov word [ebp - 8], 0xf
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], 0xffffffff
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov ax, word [edx + 0x10]
mov word [ecx + 0x30], ax
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x2c], 0
jmp 0x543a29
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x10]
jge 0x543b11
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x18]
mov esi, dword [ebp - 0x2c]
mov edx, dword [edx + esi*4]
mov eax, dword [eax + 0x10]
imul eax, dword [edx + 8]
mov ecx, dword [ecx]
add ecx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
add ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
cmp ecx, dword [edx + 8]
jle 0x543ac5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ebp - 0x2c]
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 - 0x2c]
mov edx, dword [edx + ecx*4]
add eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
jg 0x543ae0
push str.unsupported_image_type_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x50]
imul eax, dword [edx + 8]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 0x48]
imul edx, dword [ecx + 0xc]
mov dword [ebp - 0x48], edx
jmp 0x543a20
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x30]
imul ecx, ecx, 0xd8
push ecx
call fcn.0052b880
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x34], 0
jne 0x543b3b
jmp 0x5448da
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 4], edx
jmp 0x543b62
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 4]
add ecx, 0xd8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x30]
cmp dword [ebp - 0x2c], eax
jge 0x543bf7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov al, byte [ecx + 8]
mov byte [edx], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov al, byte [ecx + 0xc]
mov byte [edx + 1], al
mov ecx, dword [ebp - 4]
mov byte [ecx + 2], 0
mov edx, dword [ebp - 4]
mov byte [edx + 2], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 4]
mov dl, byte [eax + 0x18]
mov byte [ecx + 4], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov word [eax + 0xc], 0
push 0xc8
push 0
mov ecx, dword [ebp - 4]
add ecx, 0xe
push ecx
call fcn.005ab440
add esp, 0xc
jmp 0x543b4d
mov edx, dword [ebp + 0xc]
push edx
call fcn.0052ca90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xdc], eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xd8], 0xffffffff
mov eax, dword [ebp - 0xc]
add eax, 0x38
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 4], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx], 1
mov eax, dword [ebp - 0x1c]
mov byte [eax + 5], 0
mov ecx, dword [ebp - 0x1c]
mov word [ecx + 8], 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0xc]
add eax, 0x48
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov byte [ecx], 0
mov edx, dword [ebp - 0x30]
mov byte [edx + 1], 6
mov eax, dword [ebp - 0x30]
mov word [eax + 2], 6
mov ecx, dword [ebp - 0x30]
mov word [ecx + 4], 6
mov edx, dword [ebp - 0x30]
mov byte [edx + 6], 0
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x8c], 2
cmp dword [ebp + 8], 0
je 0x543c93
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
jmp 0x543c9a
mov dword [ebp - 0x54], 0x6ae9cc
mov edx, dword [ebp - 0x54]
push edx
call fcn.0054acc0
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x543cb4
jmp 0x5448da
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054ad60
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x544125
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0054af40
add esp, 4
push eax
push 0x6972c8
call fcn.0054af60
add esp, 8
push eax
call fcn.0054afa0
add esp, 4
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0x1a
ja case.default.0x543d02
mov eax, dword [ebp - 0x58]
jmp dword [eax*4 + 0x544918]
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x544120
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], eax
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
push eax
call fcn.00556ac0
add esp, 4
mov word [ebp - 0x24], ax
jmp 0x544120
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
push eax
call fcn.00556ac0
add esp, 4
mov word [ebp - 8], ax
jmp 0x544120
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
push eax
call fcn.00556ac0
add esp, 4
mov edx, dword [ebp - 0x30]
mov word [edx + 2], ax
jmp 0x544120
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
push eax
call fcn.00556ac0
add esp, 4
mov ecx, dword [ebp - 0x30]
mov word [ecx + 4], ax
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
push 0x69740c
call fcn.0054af60
add esp, 8
push eax
call fcn.0054afa0
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x543edd
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0054af50
add esp, 4
push eax
push str.ignoring_invalid_mode__s_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x543eeb
xor edx, edx
cmp dword [ebp - 0x4c], 0
sete dl
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x544120
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0054af50
add esp, 4
push eax
push 0x6973d0
call fcn.0054af60
add esp, 8
push eax
call fcn.0054afa0
add esp, 4
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 0
jge 0x543f43
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af50
add esp, 4
push eax
push str.ignoring_invalid_progression_order__s_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x543f4c
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x4c]
mov byte [ecx + 5], dl
jmp 0x544120
mov dword [ebp - 0x14], 0
jmp 0x544120
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 1], al
jmp 0x544120
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x3c]
or eax, 2
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x3c], al
jmp 0x544120
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x3c]
or eax, 4
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x3c], al
jmp 0x544120
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 6]
or eax, 1
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 6], al
jmp 0x544120
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 6]
or eax, 4
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 6], al
jmp 0x544120
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 6]
or eax, 0x20
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 6], al
jmp 0x544120
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 6]
or eax, 8
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 6], al
jmp 0x544120
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 6]
or eax, 2
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 6], al
jmp 0x544120
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 6]
or eax, 0x10
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 6], al
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0xd4], al
jmp 0x544120
mov edx, dword [ebp - 0xc]
add edx, 0xd8
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xdc]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005449e0
add esp, 0xc
test eax, eax
je 0x544098
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af50
add esp, 4
push eax
push str.ignoring_bad_rate_specifier__s_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x544120
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af50
add esp, 4
push eax
call fcn.00556670
add esp, 0xc
test eax, eax
je 0x5440e1
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0054af50
add esp, 4
push eax
push str.warning:_invalid_intermediate_layer_rates_specifier_ignored___s__n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x544120
mov edx, dword [ebp - 0x44]
push edx
call fcn.0054af50
add esp, 4
push eax
call fcn.005a6475
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x544120
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054af40
add esp, 4
push eax
push str.warning:_ignoring_invalid_option__s_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x543cb4
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0054ad30
add esp, 4
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xd8], 0xffffffff
je 0x544176
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xd8]
cmp ecx, dword [ebp - 0x34]
jbe 0x544163
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xd8]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
jmp 0x54416a
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0xd8], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
jne 0x54418b
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], 0
jmp 0x5441b7
cmp dword [ebp - 0x50], 1
je 0x5441a7
push str.warning:_overriding_imgareatlx_value_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
imul eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0xffffffff
jne 0x5441cc
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
jmp 0x5441f8
cmp dword [ebp - 0x48], 1
je 0x5441e8
push str.warning:_overriding_imgareatly_value_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
imul edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
sub eax, dword [edx]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 0xffffffff
jne 0x54423c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0xffffffff
jne 0x544251
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1c], 0
jne 0x54426c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0xc]
sub ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
jne 0x544287
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x30]
cmp eax, 3
jne 0x544339
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], 0
jmp 0x5442b0
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x10]
jge 0x544337
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov edx, dword [eax]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x18]
jne 0x54432b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov edx, dword [eax]
mov eax, dword [ecx + 0x1c]
cmp eax, dword [edx + 0x1c]
jne 0x54432b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov edx, dword [eax]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 0x10]
jne 0x54432b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov edx, dword [eax]
mov eax, dword [ecx + 0x14]
cmp eax, dword [edx + 0x14]
je 0x544332
mov dword [ebp - 0x28], 0
jmp 0x5442a7
jmp 0x544340
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
je 0x544370
cmp dword [ebp - 0x14], 0
je 0x544370
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
sar edx, 8
cmp edx, 4
je 0x544370
push str.warning:_color_space_apparently_not_RGB_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x5443a0
cmp dword [ebp - 0x14], 0
je 0x5443a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
sar ecx, 8
cmp ecx, 4
jne 0x5443a0
mov edx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [edx], 0
setne al
add eax, 1
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 6], al
jmp 0x5443a7
mov edx, dword [ebp - 0x1c]
mov byte [edx + 6], 0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp dword [eax], 0
setne cl
mov edx, dword [ebp - 0x30]
mov byte [edx + 7], cl
mov word [ebp - 0x38], 0
jmp 0x5443cc
mov ax, word [ebp - 0x38]
add ax, 1
mov word [ebp - 0x38], ax
movzx ecx, word [ebp - 0x38]
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 1]
cmp ecx, eax
jge 0x5443fd
movzx ecx, word [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov ax, word [ebp - 0x24]
mov word [edx + ecx*2 + 8], ax
movzx ecx, word [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov ax, word [ebp - 8]
mov word [edx + ecx*2 + 0x4a], ax
jmp 0x5443c0
movzx ecx, word [ebp - 0x24]
cmp ecx, 0xf
jne 0x54440f
movzx edx, word [ebp - 8]
cmp edx, 0xf
je 0x54441d
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
or ecx, 1
mov edx, dword [ebp - 0x30]
mov byte [edx], cl
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x1c], 0
jne 0x544448
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
push str.invalid_tile_width__lu_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x5448da
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
jne 0x544473
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
push str.invalid_tile_height__lu_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x5448da
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
cmp edx, dword [ecx + 4]
ja 0x5444b7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 8]
ja 0x5444b7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 0xc]
cmp ecx, dword [eax + 4]
jb 0x5444b7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 0x20]
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 8]
jae 0x5444e0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
push edx
push str.invalid_tile_grid_offset___lu___lu__n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0x10
jmp 0x5448da
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c]
lea eax, [edx + ecx - 1]
mov ecx, dword [ebp - 0xc]
xor edx, edx
div dword [ecx + 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
lea eax, [edx + ecx - 1]
mov ecx, dword [ebp - 0xc]
xor edx, edx
div dword [ecx + 0x20]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x24]
imul edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], edx
cmp dword [ebp - 0x18], 0
je 0x5445c6
cmp dword [ebp - 0x3c], 0
jle 0x5445c6
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x1c]
mov word [edx + 8], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 8]
lea edx, [ecx*4 - 4]
push edx
call fcn.0052b880
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0xc], 0
jne 0x544583
jmp 0x5448da
mov dword [ebp - 0x10], 0
jmp 0x544595
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 8]
sub edx, 1
cmp dword [ebp - 0x10], edx
jge 0x5445c6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
fld qword [ecx + eax*8]
fmul qword [0x625430]
call fcn.005ab4c0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx + edx*4], eax
jmp 0x54458c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xd8], 0xffffffff
jne 0x5445f6
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x38], 0
jne 0x5445f6
push str.cannot_use_real_mode_for_lossless_coding_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
movzx edx, word [ebp - 0x24]
cmp edx, 0xf
jle 0x54461a
push str.invalid_precinct_width_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
movzx eax, word [ebp - 8]
cmp eax, 0xf
jle 0x54463e
push str.invalid_precinct_height_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x4a]
cmp edx, 2
jl 0x544656
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x4a]
cmp ecx, 0xc
jle 0x544680
mov edx, dword [ebp - 0xc]
movzx ecx, word [edx + 0x4a]
mov eax, 1
shl eax, cl
push eax
push str.invalid_code_block_width__d_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x5448da
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x4c]
cmp edx, 2
jl 0x544698
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x4c]
cmp ecx, 0xc
jle 0x5446c2
mov edx, dword [ebp - 0xc]
movzx ecx, word [edx + 0x4c]
mov eax, 1
shl eax, cl
push eax
push str.invalid_code_block_height__d_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0xc
jmp 0x5448da
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x4a]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x4c]
add edx, ecx
cmp edx, 0xc
jle 0x5446f2
push str.code_block_size_too_large_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x40]
cmp eax, 0x4000
jle 0x54471b
push str.too_many_layers_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x49]
cmp edx, 1
jge 0x544742
push str.must_be_at_least_one_resolution_level_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0xd4]
cmp ecx, 8
jle 0x54476c
push str.invalid_number_of_guard_bits_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xd8], 0xffffffff
je 0x5447b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0xd8]
cmp edx, dword [ecx + 0xdc]
jbe 0x5447b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xdc]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xd8]
push eax
push str.warning:_specified_rate_is_unreasonably_large___lu____lu__n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 8]
cmp edx, 1
jle 0x5448c3
mov word [ebp - 0x20], 0
jmp 0x5447da
mov ax, word [ebp - 0x20]
add ax, 1
mov word [ebp - 0x20], ax
movzx ecx, word [ebp - 0x20]
add ecx, 2
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 8]
cmp ecx, eax
jge 0x544826
movzx ecx, word [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
movzx edx, word [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 0xc]
mov eax, dword [eax + ecx*4]
cmp eax, dword [esi + edx*4 + 4]
jl 0x544824
push str.intermediate_layer_rates_must_increase_monotonically_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
jmp 0x5447ce
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xd8], 0xffffffff
je 0x5448c3
mov word [ebp - 0x20], 0
jmp 0x54484a
mov dx, word [ebp - 0x20]
add dx, 1
mov word [ebp - 0x20], dx
movzx eax, word [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 8]
sub edx, 1
cmp eax, edx
jge 0x5448c3
movzx eax, word [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
fild dword [edx + eax*4]
fdiv qword [0x625430]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
fild qword [ebp - 0x64]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xdc]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0
fild qword [ebp - 0x6c]
fdivp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x5448be
push str.warning:_intermediate_layer_rates_must_be_less_than_overall_rate_n
call fcn.005a9da0
add eax, 0x40
push eax
call fcn.005a6c55
add esp, 8
jmp 0x5448da
jmp 0x54483e
cmp dword [ebp - 0x18], 0
je 0x5448d5
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0052b8a0
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x544912
cmp dword [ebp - 0x18], 0
je 0x5448ec
mov edx, dword [ebp - 0x18]
push edx
call fcn.0052b8a0
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x5448fe
mov eax, dword [ebp - 0x44]
push eax
call fcn.0054ad30
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x544910
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00544990
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret