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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
cmp ecx, 6
push ebx
push esi
mov esi, dword [esp + 0x28]
mov byte [esp + 8], 0x49
mov byte [esp + 9], 0x48
mov byte [esp + 0xa], 0x44
mov byte [esp + 0xb], 0x52
mov byte [esp + 0xc], 0
ja case.0x555d5a.1
jmp dword [ecx*4 + 0x5560c8]
mov ebx, dword [esp + 0x34]
lea eax, [ebx - 1]
cmp eax, 0xf
ja case.0x555d74.3
movzx eax, byte [eax + 0x5560ec]
jmp dword [eax*4 + 0x5560e4]
mov byte [esi + 0x12a], 1
jmp 0x555e1b
push str.Invalid_bit_depth_for_grayscale_image
push esi
call fcn.00545fa0
mov ebx, dword [esp + 0x34]
cmp ebx, 8
je 0x555dab
cmp ebx, 0x10
je 0x555dab
push str.Invalid_bit_depth_for_RGB_image
push esi
call fcn.00545fa0
mov byte [esi + 0x12a], 3
jmp 0x555e1b
mov ebx, dword [esp + 0x34]
lea eax, [ebx - 1]
cmp eax, 7
ja case.0x555dc7.3
movzx edx, byte [eax + 0x556104]
jmp dword [edx*4 + 0x5560fc]
push str.Invalid_bit_depth_for_paletted_image
push esi
call fcn.00545fa0
mov ebx, dword [esp + 0x34]
cmp ebx, 8
je 0x555df2
cmp ebx, 0x10
je 0x555df2
push str.Invalid_bit_depth_for_grayscalealpha_image
push esi
call fcn.00545fa0
mov byte [esi + 0x12a], 2
jmp 0x555e1b
mov ebx, dword [esp + 0x34]
cmp ebx, 8
je 0x555e14
cmp ebx, 0x10
je 0x555e14
push str.Invalid_bit_depth_for_RGBA_image
push esi
call fcn.00545fa0
mov byte [esi + 0x12a], 4
cmp dword [esp + 0x3c], 0
je 0x555e3c
push str.Invalid_compression_type_specified
push esi
call fcn.00545eb0
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x3c], 0
test byte [esi + 0x230], 4
je 0x555e5f
test dword [esi + 0x6c], 0x1000
jne 0x555e5f
cmp ecx, 2
je 0x555e58
cmp ecx, 6
jne 0x555e5f
cmp dword [esp + 0x40], 0x40
je 0x555e80
cmp dword [esp + 0x40], 0
je 0x555e80
push str.Invalid_filter_type_specified
push esi
call fcn.00545eb0
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x555eab
cmp eax, 1
je 0x555eab
push str.Invalid_interlace_type_specified
push esi
call fcn.00545eb0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x4c]
add esp, 8
mov dl, byte [esi + 0x12a]
mov byte [esi + 0x123], al
mov al, byte [esp + 0x40]
mov byte [esi + 0x234], al
mov al, dl
imul bl
mov byte [esi + 0x126], cl
mov cl, byte [esp + 0x3c]
push edi
mov edi, dword [esp + 0x34]
mov byte [esi + 0x254], cl
mov ecx, dword [esp + 0x30]
mov byte [esi + 0x129], al
cmp al, 8
mov byte [esi + 0x127], bl
mov dword [esi + 0xcc], ecx
mov dword [esi + 0xd0], edi
movzx eax, al
jb 0x555f05
shr eax, 3
imul eax, ecx
jmp 0x555f0e
imul eax, ecx
add eax, 7
shr eax, 3
mov byte [esi + 0x12b], dl
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0xdc], eax
mov dword [esi + 0xd8], ecx
mov byte [esi + 0x128], bl
call fcn.00554a40
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00554a40
mov dl, byte [esp + 0x50]
mov al, byte [esp + 0x54]
mov cl, byte [esp + 0x4c]
mov byte [esp + 0x2e], dl
push 0xd
lea edx, [esp + 0x28]
mov byte [esp + 0x33], al
push edx
lea eax, [esp + 0x24]
mov byte [esp + 0x35], cl
mov cl, byte [esp + 0x60]
push eax
push esi
mov byte [esp + 0x3c], bl
mov byte [esp + 0x40], cl
call fcn.00555ce0
add esp, 0x20
cmp byte [esi + 0x125], 0
mov dword [esi + 0x98], 0x546190
mov dword [esi + 0x9c], fcn.005461e0
mov dword [esi + 0xa0], esi
pop edi
jne 0x555fbb
cmp byte [esi + 0x126], 3
je 0x555fb4
cmp byte [esi + 0x127], 8
jb 0x555fb4
mov byte [esi + 0x125], 0xf8
jmp 0x555fbb
mov byte [esi + 0x125], 8
mov eax, dword [esi + 0x70]
test al, 1
jne 0x555fd4
xor ecx, ecx
cmp byte [esi + 0x125], 8
setne cl
mov dword [esi + 0xc8], ecx
test al, 2
jne 0x555fe2
mov dword [esi + 0xb8], 0xffffffff
test al, 4
jne 0x555ff0
mov dword [esi + 0xc4], 8
test al, 8
jne 0x555ffe
mov dword [esi + 0xc0], 0xf
test al, 0x10
jne 0x55600c
mov dword [esi + 0xbc], 8
mov edx, dword [esi + 0xc8]
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc0]
push 0x38
push 0x624a78
push edx
mov edx, dword [esi + 0xbc]
push eax
mov eax, dword [esi + 0xb8]
push ecx
push edx
push eax
lea ecx, [esi + 0x78]
push ecx
call fcn.00582160
add esp, 0x20
test eax, eax
je 0x556081
cmp eax, 0xfffffffa
jne 0x556056
push str.zlib_failed_to_initialize_compressor____version_error
push esi
call fcn.00545fa0
cmp eax, 0xfffffffe
jne 0x556066
push str.zlib_failed_to_initialize_compressor____stream_error
push esi
call fcn.00545fa0
cmp eax, 0xfffffffc
jne 0x556076
push str.zlib_failed_to_initialize_compressor____mem_error
push esi
call fcn.00545fa0
push str.zlib_failed_to_initialize_compressor
push esi
call fcn.00545fa0
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb4]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x84], edx
mov dword [esi + 0x88], eax
mov dword [esi + 0xa4], 0
mov dword [esi + 0x6c], 1
pop esi
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0x1c
ret
push str.Invalid_image_color_type_specified
push esi
call fcn.00545fa0
mov edi, edi
popal
pop ebp
push ebp
add byte [ebx - 0x6dffaaa0], bh
pop ebp
push ebp
add byte [ebp + ebx*2 + 0x5dd90055], dh
push ebp
add byte [ebx - 0x4ffaaa0], bh
pop ebp
push ebp
add byte [ebx + 0x5d], bh
push ebp
add byte [edi + 0x555d], al
add byte [ecx], al
add byte [ecx], al
add dword [ecx], eax
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ebx + 93], bh
push ebp
add dh, cl
pop ebp
push ebp
add byte [eax], al
add byte [ecx], al
add byte [ecx], al
add dword [ecx], eax
add ah, cl
int3