Function at 0x473080
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov eax, dword [esi + 0x260]
test eax, eax
je 0x4730cb
cmp eax, 1
jne 0x4730a4
mov eax, dword [esp + 0x14]
mov ecx, esi
pop esi
add esp, 8
jmp fcn.00470aa0
add eax, 0xffffffff
cmp eax, 1
mov dword [esi + 0x260], eax
jne 0x4730cb
mov ecx, str.No_space_in_chunk_cache_for_zTXt
call fcn.004665c0
mov eax, dword [esp + 0x14]
mov ecx, esi
pop esi
add esp, 8
jmp fcn.00470aa0
mov eax, dword [esi + 0x6c]
test al, 1
push edi
jne 0x4730df
mov edi, str.Missing_IHDR_before_zTXt
mov eax, esi
jmp fcn.004665a0
test al, 4
je 0x4730e9
or eax, 8
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x47310e
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x473106
push esi
call eax
add esp, 8
jmp 0x47310e
call fcn.0047fdbd
add esp, 4
push ebx
mov ebx, dword [esp + 0x1c]
lea ecx, [ebx + 1]
call fcn.0046fa50
test eax, eax
mov dword [esi + 0x2a8], eax
jne 0x473136
mov ecx, str.Out_of_memory_processing_zTXt_chunk
call fcn.004665c0
pop ebx
pop edi
pop esi
add esp, 8
ret
call fcn.00470a30
xor eax, eax
mov ecx, esi
call fcn.00470aa0
test eax, eax
je 0x473166
mov edx, dword [esi + 0x2a8]
mov ecx, esi
call fcn.0046fa20
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x2a8]
mov byte [ebx + eax], 0
mov eax, dword [esi + 0x2a8]
mov edi, eax
cmp byte [edi], 0
je 0x473188
lea ecx, [ecx]
add edi, 1
cmp byte [edi], 0
jne 0x473180
lea ecx, [eax + ebx - 2]
cmp edi, ecx
jb 0x4731df
mov ecx, str.Truncated_zTXt_chunk
call fcn.004665c0
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x4731ce
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x4731c6
push esi
call eax
add esp, 8
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
add esp, 8
ret
call fcn.0047fdbd
add esp, 4
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
add esp, 8
ret
add edi, 1
push ebp
movsx ebp, byte [edi]
test ebp, ebp
je 0x4731f6
mov ecx, str.Unknown_compression_type_in_zTXt_chunk
call fcn.004665c0
xor ebp, ebp
sub edi, dword [esi + 0x2a8]
mov edx, dword [esp + 0x20]
add edi, 1
mov ebx, edi
push ebx
push edx
push esi
lea edx, [esp + 0x20]
mov ecx, ebp
call fcn.00470d20
mov eax, dword [esi + 0x70]
mov dword [esp + 0x1c], eax
or eax, 0x100000
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x23c]
add esp, 0xc
test eax, eax
push 0x1c
je 0x473239
push esi
call eax
add esp, 8
jmp 0x473241
call fcn.00482392
add esp, 4
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x47325e
test dword [esi + 0x70], 0x100000
jne 0x47325e
mov edi, str.Out_of_Memory
mov eax, esi
jmp fcn.004665a0
cmp edi, eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x70], ecx
jne 0x4732ba
mov ecx, str.Not_enough_memory_to_process_zTXt_chunk
call fcn.004665c0
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x4732a8
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x4732a0
push esi
call eax
add esp, 8
pop ebp
pop ebx
pop edi
mov dword [esi + 0x2a8], 0
pop esi
add esp, 8
ret
call fcn.0047fdbd
add esp, 4
mov dword [esi + 0x2a8], 0
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x14]
mov dword [edi], ebp
mov edx, dword [esi + 0x2a8]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x2a8]
push edi
push edx
add eax, ebx
push esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
call fcn.00465d80
mov ebx, eax
mov eax, dword [esi + 0x240]
add esp, 0xc
test eax, eax
push edi
je 0x473304
push esi
call eax
add esp, 8
jmp 0x47330c
call fcn.0047fdbd
add esp, 4
mov ecx, dword [esi + 0x2a8]
test ecx, ecx
je 0x473331
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x473329
push esi
call eax
add esp, 8
jmp 0x473331
call fcn.0047fdbd
add esp, 4
test ebx, ebx
mov dword [esi + 0x2a8], 0
je 0x4732b2
mov edi, str.Insufficient_memory_to_store_zTXt_chunk
mov eax, esi
jmp fcn.004665a0