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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
xor esi, esi
mov byte [esp + 0x84], 0
xorps xmm0, xmm0
mov dword [esp + 0x6c], esi
xor eax, eax
movlpd qword [esp + 0x7c], xmm0
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
movaps xmm0, xmmword [esp + 0x6c]
push edi
movaps xmmword [esp + 0x90], xmm0
xor edi, edi
movaps xmm0, xmmword [esp + 0x80]
mov dword [esp + 0x58], edx
mov dword [esp + 0x14], ecx
movaps xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
test edx, edx
je 0x497fa5
mov edx, dword [edx]
test edx, edx
je 0x497fa5
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 8]
add eax, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov edx, dword [edx + 4]
add edx, dword [ecx]
cmp byte [ecx + 0x18], 0
mov ecx, dword [esp + 0x14]
cmovne edx, eax
mov dword [esp + 0x44], edx
xor eax, eax
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x4c], edx
test eax, eax
je 0x497fe4
cmp dword [eax], edx
je 0x497fe4
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0xc]
add edx, dword [esp + 0x4c]
mov eax, dword [eax + 8]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x170]
mov dword [esp + 0x20], eax
test eax, eax
je case.0x498004.0
mov edi, dword [ecx + 0xadb8]
cmp eax, 0x10
ja case.default.0x498004
movzx eax, byte [eax + 0x498d08]
jmp dword [eax*4 + 0x498ce8]
xor dl, dl
jmp 0x498c27
mov esi, dword [esp + 0x14]
test byte [esi + 0x48], 0x10
jne 0x498026
mov esi, str.base:_bad_call_sequence
jmp 0x498cb2
cmp dword [esi + 0xdc], 0
jne 0x498039
mov esi, str.base:_no_more_information
jmp 0x498cb2
cmp dword [esi + 0xd8], 3
je 0x498a90
cmp byte [esi + 0x5f], 0
je 0x4980b0
cmp byte [esi + 0x60], 0
je 0x49808d
push 2
sub esp, 8
lea ecx, [esi + 0x198]
call fcn.004906b0
add esp, 0xc
cmp byte [esi + 0x4f], 0
je 0x49808d
lea eax, [esi + 0x198]
test eax, eax
je 0x49808d
cmp dword [eax], 0x3ccb6c71
jne 0x49808d
cmp byte [eax + 0x19], 0
je 0x498089
mov byte [eax + 0x18], 1
jmp 0x49808d
mov byte [eax + 0x1d], 1
mov byte [esi + 0x60], 1
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
jmp 0x4980b0
mov esi, dword [esp + 0x14]
nop dword [eax + eax]
cmp dword [ebp + 8], 0
je 0x498130
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xdc]
mov edx, dword [esi + 0xe0]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xf4]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xec]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xd8]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, esi
mov esi, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
mov dword [ecx + 0x1c], eax
cmp dword [esi + 0xd8], 4
jne 0x49892c
cmp byte [esi + 0x5f], 0
mov eax, dword [esi + 0x64]
je 0x49878d
cmp eax, 0x50434369
je 0x498637
cmp eax, 0x74585469
je 0x4984d6
cmp eax, 0x7458547a
jne 0x4984cc
mov eax, dword [esi + 0xf8]
cmp eax, dword [esi + 0xfc]
jne 0x4983c8
push dword [esi + 0x104]
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x44]
push dword [esi + 0x100]
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x98]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
lea eax, [esi + 0xa528]
push 0x400
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004769f0
mov ecx, dword [ebp + 0xc]
add esp, 0x1c
mov edi, dword [esp + 0x1c]
mov edx, edi
mov dword [esp + 0x50], eax
mov al, byte [ecx + 0x18]
lea ecx, [esp + 0x48]
push 0
push dword [esi + 0x6c]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
call fcn.00476910
mov eax, dword [ebp + 0xc]
add esp, 8
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
sub edx, ecx
cmp byte [esp + 0x13], 0
mov dword [esp + 0x68], ecx
lea ecx, [eax + 8]
je 0x498220
mov dword [esp + 0x5c], ecx
cmp dword [ecx], edx
ja 0x498220
mov byte [esp + 0x1b], 1
jmp 0x498229
mov byte [esp + 0x1b], 0
mov dword [esp + 0x5c], ecx
mov cl, byte [esp + 0x1b]
mov byte [eax + 0x18], cl
mov ecx, dword [esp + 0x5c]
push 0
push 0
mov dword [ecx], edx
mov ecx, dword [esp + 0x48]
mov eax, ecx
sub eax, dword [esp + 0x2c]
sub ecx, dword [esp + 0x98]
cdq
mov dword [esp + 0x34], eax
mov eax, edi
sub eax, dword [esp + 0x54]
sub edi, dword [esp + 0x70]
mov dword [esp + 0x38], edx
cdq
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
push eax
push dword [esp + 0x5c]
mov dword [esp + 0x58], edx
mov dword [eax + 0xc], edi
lea eax, [esi + 0x198]
push eax
mov dword [esp + 0xac], ecx
call fcn.004907b0
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [esp + 0xac]
add esp, 0x14
add eax, dword [esp + 0x90]
mov dword [esp + 0x50], eax
mov eax, dword [ecx]
add eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
sub eax, dword [esp + 0x4c]
cdq
mov ecx, eax
cmp edx, dword [esp + 0x48]
jb 0x4982c3
mov eax, dword [esp + 0x40]
ja 0x4982bf
cmp ecx, eax
jb 0x4982c3
sub ecx, eax
jmp 0x4982d0
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov ecx, dword [esp + 0x68]
mov eax, dword [esi + 0x6c]
sub eax, ecx
xor ecx, ecx
cmp eax, dword [esi + 0x6c]
cmovbe ecx, eax
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x24]
cdq
mov dword [esi + 0x6c], ecx
mov ecx, eax
mov eax, edx
cmp eax, dword [esp + 0x30]
jb 0x49835d
mov edx, dword [esp + 0x2c]
ja 0x4982fd
cmp ecx, edx
jb 0x49835d
sub ecx, edx
mov edx, dword [ebp + 0xc]
sbb eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov al, byte [esp + 0x13]
mov byte [edx + 0x18], al
mov eax, dword [esp + 0x20]
sub eax, dword [edx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x20]
mov dword [eax], esi
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
test eax, eax
ja 0x498353
jb 0x4983a8
cmp ecx, 0x400
jbe 0x4983a8
mov esi, str.png:_internal_error:_inconsistent_I_O
jmp 0x498cb5
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
mov cl, byte [esp + 0x13]
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
movlpd qword [esp + 0x50], xmm0
mov byte [eax + 0x18], cl
mov ecx, dword [esp + 0x20]
sub ecx, dword [eax]
mov eax, dword [esp + 0x5c]
mov dword [eax], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x64], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
push eax
mov dword [esi + 0xfc], ecx
push ecx
lea ecx, [esi + 0x100]
mov dword [esi + 0xf8], 0
call fcn.00476860
add esp, 8
mov eax, dword [esi + 0xf8]
cmp eax, dword [esi + 0xfc]
jae 0x498463
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub edx, ecx
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
movzx eax, byte [eax + esi + 0xa528]
movzx eax, word [eax*2 + 0x725190]
mov dword [esp + 0x30], eax
test ax, ax
je 0x4984b0
cmp eax, 0x7f
ja 0x498428
test edx, edx
je 0x49848c
inc dword [esi + 0xf8]
inc ecx
dec edx
jmp 0x498443
cmp edx, 1
jbe 0x49849e
mov eax, dword [esp + 0x30]
inc dword [esi + 0xf8]
shr eax, 8
mov byte [ecx + 1], al
add ecx, 2
sub edx, 2
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov byte [esi], al
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xf8]
cmp eax, dword [esi + 0xfc]
jb 0x4983f0
test edi, edi
je 0x498928
mov al, byte [edi]
cmp al, 0x24
jne 0x4984ba
cmp edi, str._base:_short_write
je 0x4980b0
mov esi, edi
mov dword [esp + 0x20], 6
jmp 0x498c21
mov esi, str._base:_short_write
mov dword [esp + 0x20], 4
jmp 0x498c21
mov esi, str._base:_short_write
mov dword [esp + 0x20], 5
jmp 0x498c21
mov esi, str.png:_bad_text_chunk__not_Latin_1_
jmp 0x498cb2
mov edx, dword [ebp + 0xc]
mov esi, edi
cmp al, 0x23
jne 0x498c9d
jmp 0x498cb5
mov esi, str.png:_internal_error:_inconsistent_chunk_type
jmp 0x498cb2
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, edi
push 0
push dword [esi + 0x6c]
mov al, byte [ecx + 0x18]
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
call fcn.00476910
mov ecx, dword [ebp + 0xc]
add esp, 8
mov edx, dword [esp + 0x48]
sub edx, dword [ecx]
lea eax, [ecx + 8]
cmp byte [esp + 0x13], 0
je 0x498521
mov dword [esp + 0x24], eax
cmp dword [eax], edx
ja 0x498521
mov byte [esp + 0x1b], 1
jmp 0x49852a
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x1b]
mov byte [ecx + 0x18], al
mov eax, dword [esp + 0x24]
mov dword [eax], edx
mov eax, edi
sub eax, dword [esp + 0x4c]
cdq
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x49855f
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc]
sub eax, dword [edx]
mov dword [edx + 8], eax
lea eax, [ecx + 8]
jmp 0x498563
mov eax, dword [esp + 0x24]
sub edi, dword [ecx]
add esi, 0x198
push 0
push 0
push ecx
push edx
push esi
mov dword [esp + 0x44], eax
mov dword [ecx + 0xc], edi
call fcn.004907b0
mov ecx, dword [esp + 0x6c]
add esp, 0x14
mov edi, eax
mov esi, edi
test ecx, ecx
je 0x49859e
mov eax, dword [ecx]
add eax, dword [ecx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
add eax, dword [ecx]
mov dword [esp + 0x1c], eax
sub eax, dword [esp + 0x4c]
cdq
cmp edx, dword [esp + 0x40]
jb 0x4985c3
mov ecx, dword [esp + 0x2c]
ja 0x4985bf
cmp eax, ecx
jb 0x4985c3
sub eax, ecx
jmp 0x4985d0
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 0x6c]
mov eax, edx
sub eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
xor eax, eax
cmp dword [esp + 0x30], edx
mov edx, dword [ebp + 0xc]
cmovbe eax, dword [esp + 0x30]
mov dword [ecx + 0x6c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x24]
mov byte [edx + 0x18], al
mov eax, dword [esp + 0x28]
sub eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
test edi, edi
je 0x498926
mov al, byte [edi]
cmp al, 0x24
jne 0x498628
mov dword [esp + 0x20], 3
jmp 0x498c25
mov esi, edi
cmp al, 0x23
jne 0x498ca1
jmp 0x498cb5
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, edi
push 0
push dword [esi + 0x6c]
mov al, byte [ecx + 0x18]
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
call fcn.00476910
mov ecx, dword [ebp + 0xc]
add esp, 8
mov edx, dword [esp + 0x48]
sub edx, dword [ecx]
lea eax, [ecx + 8]
cmp byte [esp + 0x13], 0
je 0x498682
mov dword [esp + 0x24], eax
cmp dword [eax], edx
ja 0x498682
mov byte [esp + 0x1b], 1
jmp 0x49868b
mov byte [esp + 0x1b], 0
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x1b]
mov byte [ecx + 0x18], al
mov eax, dword [esp + 0x24]
mov dword [eax], edx
mov eax, edi
sub eax, dword [esp + 0x4c]
cdq
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x4986c0
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc]
sub eax, dword [edx]
mov dword [edx + 8], eax
lea eax, [ecx + 8]
jmp 0x4986c4
mov eax, dword [esp + 0x24]
sub edi, dword [ecx]
add esi, 0x198
push 0
push 0
push ecx
push edx
push esi
mov dword [esp + 0x44], eax
mov dword [ecx + 0xc], edi
call fcn.004907b0
mov ecx, dword [esp + 0x6c]
add esp, 0x14
mov edi, eax
mov esi, edi
test ecx, ecx
je 0x4986ff
mov eax, dword [ecx + 8]
add eax, dword [ecx]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
add eax, dword [ecx]
mov dword [esp + 0x1c], eax
sub eax, dword [esp + 0x4c]
cdq
cmp edx, dword [esp + 0x40]
jb 0x498724
mov ecx, dword [esp + 0x2c]
ja 0x498720
cmp eax, ecx
jb 0x498724
sub eax, ecx
jmp 0x498731
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 0x6c]
mov eax, edx
sub eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
xor eax, eax
cmp dword [esp + 0x30], edx
mov edx, dword [ebp + 0xc]
cmovbe eax, dword [esp + 0x30]
mov dword [ecx + 0x6c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x24]
mov byte [edx + 0x18], al
mov eax, dword [esp + 0x28]
sub eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
test edi, edi
je 0x498926
mov al, byte [edi]
cmp al, 0x24
jne 0x498628
mov dword [esp + 0x20], 2
jmp 0x498c25
cmp eax, 0x74585469
jne 0x498823
cmp dword [esi + 0xdc], 0x4b565056
jne 0x498823
cmp dword [esi + 0x6c], 0
jbe 0x49892c
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
sub dword [esp + 0x24], edx
mov dword [esp + 0x44], eax
nop dword [eax]
cmp dword [esp + 0x24], 0
jbe 0x498816
test eax, eax
je 0x498804
dec dword [esi + 0x6c]
mov al, byte [edx]
inc edx
dec dword [esp + 0x24]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x6c], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
ja 0x4987d0
jmp 0x498930
mov esi, str._base:_short_write
mov dword [esp + 0x20], 8
jmp 0x498c21
mov dword [esp + 0x20], 7
jmp 0x498c1c
cmp dword [esi + 0x6c], 0
mov edx, dword [esp + 0x1c]
jbe 0x4988f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ecx
sub eax, edx
je 0x4988cd
sub dword [esp + 0x44], ecx
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x49891c
movzx eax, al
movzx eax, word [eax*2 + 0x725190]
mov dword [esp + 0x30], eax
test ax, ax
je 0x4984b0
cmp eax, 0x7f
ja 0x498888
cmp dword [esp + 0x44], 0
jbe 0x4988da
dec dword [esi + 0x6c]
inc ecx
dec dword [esp + 0x44]
jmp 0x4988a4
cmp dword [esp + 0x44], 1
jbe 0x49890a
mov eax, dword [esp + 0x30]
dec dword [esi + 0x6c]
shr eax, 8
mov byte [ecx + 1], al
add ecx, 2
sub dword [esp + 0x44], 2
mov eax, dword [esp + 0x30]
inc edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov byte [ecx], al
cmp dword [esi + 0x6c], 0
mov ecx, dword [esp + 0x3c]
jbe 0x4988ec
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
sub eax, edx
jne 0x498850
mov dword [esp + 0x20], 9
jmp 0x498c1c
mov esi, str._base:_short_write
mov dword [esp + 0x20], 0xa
jmp 0x498c21
mov dword [esp + 0x1c], edx
cmp dword [esi + 0xdc], 0x4b56504b
jne 0x498ba1
mov esi, str.png:_bad_chunk
jmp 0x498cb2
mov esi, str._base:_short_write
mov dword [esp + 0x20], 0xb
jmp 0x498c21
dec dword [esi + 0x6c]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x498930
mov esi, ecx
mov byte [esi + 0x5f], 0
mov edx, dword [esp + 0x1c]
cmp dword [esi + 0xdc], 0x4b56504b
jne 0x498ba1
mov eax, dword [esi + 0x64]
mov dword [esi + 0xdc], 0x4b565056
cmp eax, 0x74585469
jne 0x498a36
mov eax, dword [esi + 0x6c]
cmp eax, 1
ja 0x49896a
mov esi, str.png:_bad_chunk
jmp 0x498cb2
add eax, 0xfffffffe
mov dword [esp + 0x20], 0xc
mov dword [esi + 0x6c], eax
jmp 0x49897e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp edx, eax
je 0x498c1c
mov cl, byte [edx]
inc edx
mov dword [esp + 0x1c], edx
test cl, cl
jne 0x4989a2
mov byte [esi + 0x5f], cl
mov dword [esp + 0x20], 0xd
jmp 0x4989c0
cmp cl, 1
jne 0x498900
mov byte [esi + 0x5f], cl
mov dword [esp + 0x20], 0xd
jmp 0x4989c0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp edx, eax
je 0x498c1c
mov al, byte [edx]
inc edx
mov dword [esp + 0x1c], edx
test al, al
je 0x4989e3
cmp byte [esi + 0x5f], 0
je 0x4989e3
mov esi, str.png:_unsupported_PNG_compression_method
jmp 0x498cb2
sub dword [esi + 0xdc], 2
mov eax, dword [esi + 0xdc]
cmp eax, 0x4b565056
je 0x498c94
inc eax
mov dword [esi + 0xdc], eax
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x498900
dec eax
mov dword [esp + 0x20], 0xe
mov dword [esi + 0x6c], eax
jmp 0x498a1f
mov esi, dword [esp + 0x14]
cmp edx, dword [esp + 0x28]
je 0x498c1c
mov al, byte [edx]
inc edx
mov dword [esp + 0x1c], edx
test al, al
jne 0x498a02
jmp 0x4989ea
cmp eax, 0x7458547a
jne 0x498c94
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x498a52
mov esi, str.png:_bad_chunk
jmp 0x498cb2
dec eax
mov dword [esp + 0x20], 0xf
mov dword [esi + 0x6c], eax
jmp 0x498a64
mov esi, dword [esp + 0x14]
cmp edx, dword [esp + 0x28]
je 0x498c1c
mov al, byte [edx]
inc edx
mov dword [esp + 0x1c], edx
test al, al
je 0x498a83
mov esi, str.png:_unsupported_PNG_compression_method
jmp 0x498cb2
mov byte [esi + 0x5f], 1
jmp 0x498c94
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, edx
sub eax, dword [esp + 0x4c]
cdq
mov dword [esp + 0x68], eax
mov dword [esp + 0x50], edx
test ecx, ecx
je 0x498aae
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
jmp 0x498abf
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push dword [esp + 0x50]
mov edx, dword [esi + 0xe8]
push dword [esp + 0x6c]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0xec]
push ecx
push eax
mov dword [esp + 0x3c], edx
call fcn.00476340
add esp, 0x10
cmp eax, dword [esp + 0x30]
jne 0x498cad
cmp edx, dword [esp + 0x2c]
jne 0x498cad
cmp dword [ebp + 8], 0
je 0x498b65
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xdc]
mov edx, dword [esi + 0xe0]
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xf4]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xd8]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, esi
mov esi, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0xf0]
cmp dword [esi + 0xec], ecx
ja 0x498ba1
jb 0x498b83
cmp dword [esi + 0xe8], eax
jae 0x498ba1
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], ecx
mov esi, str._base:_even_more_information
mov dword [esp + 0x20], 1
jmp 0x498c21
cmp dword [esi + 0x6c], 0
je 0x498bb1
mov esi, str.png:_bad_chunk
jmp 0x498cb2
mov dword [esi + 0xadc0], 4
mov dword [esi + 0xadc4], 0
mov dword [esp + 0x20], 0x10
jmp 0x498bd3
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
cdq
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xadc4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xadc0]
cmp edx, dword [esp + 0x2c]
jb 0x498c3e
ja 0x498c00
cmp eax, dword [esp + 0x30]
jbe 0x498c3e
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
sbb edx, dword [esp + 0x2c]
mov dword [esi + 0xadc0], eax
mov dword [esi + 0xadc4], edx
mov dword [esp + 0x1c], ecx
mov esi, str._base:_short_read
mov ecx, dword [esp + 0x14]
mov dl, 1
xor eax, eax
mov dword [ecx + 0xadb8], edi
test dl, dl
cmovne eax, dword [esp + 0x20]
mov dword [ecx + 0x170], eax
jmp 0x498cb2
add ecx, eax
mov dword [esi + 0xd8], 0
mov dword [esp + 0x1c], ecx
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
and byte [esi + 0x48], 0xef
xor esi, esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x170], 0
jmp 0x498cb5
mov esi, str.base:_bad_I_O_position
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x498ccc
mov ecx, dword [edi]
test ecx, ecx
je 0x498ccc
mov eax, dword [esp + 0x3c]
sub eax, ecx
mov dword [edi + 8], eax
test edx, edx
je 0x498cdf
mov ecx, dword [edx]
test ecx, ecx
je 0x498cdf
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [edx + 0xc], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret