Function at 0x10041ac0
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x294]
sub esp, 0x314
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x290], eax
mov eax, dword [ebp + 0x29c]
mov ecx, dword [ebp + 0x2ac]
mov edx, dword [ebp + 0x2b4]
push ebx
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x2b0]
xor ebx, ebx
push edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x7c], 0x28c
push 0x28c
cmp eax, ebx
je 0x10041b2d
lea edx, [ebp - 0x4c]
mov dword [ebp + 0x1ec], ecx
mov ecx, edx
push ecx
mov dword [ebp - 0x78], edx
call eax
add esp, 8
jmp 0x10041b35
call sub.MSVCR90.dll_malloc
add esp, 4
mov esi, eax
mov dword [ebp - 0x70], esi
cmp esi, ebx
je 0x10041b4d
push 0x28c
push ebx
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x50], esi
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x10041d85
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov eax, 0xf4240
mov dword [ecx + 0x258], eax
mov ecx, dword [sym.imp.MSVCR90.dll_longjmp]
mov dword [edx + 0x25c], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov dword [eax + 0x260], ebx
mov eax, edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x64], edx
cmp eax, ebx
je 0x10041b98
mov dword [eax + 0x40], ecx
jmp 0x10041b9a
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x6c], eax
call sub.MSVCR90.dll__setjmp3
add esp, 8
test eax, eax
je 0x10041bb2
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x10041bd4
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x238], ecx
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x23c], edx
mov dword [eax + 0x240], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x10041bf6
mov edx, dword [ebp + 0x2a0]
mov ecx, dword [ebp + 0x2a4]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp + 0x2a8]
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], edx
mov ecx, dword [ebp - 0x5c]
mov edi, 1
mov esi, 0x20000
cmp ecx, ebx
je 0x10041c27
mov eax, str.1.5.2
mov edx, ecx
sub edx, eax
mov cl, byte [edx + eax]
cmp cl, byte [eax]
je 0x10041c1d
mov ecx, dword [ebp - 0x50]
or dword [ecx + 0x70], esi
mov cl, byte [eax]
add eax, edi
test cl, cl
jne 0x10041c10
jmp 0x10041c2d
mov eax, dword [ebp - 0x50]
or dword [eax + 0x70], esi
mov edx, dword [ebp - 0x50]
test dword [edx + 0x70], esi
je 0x10041c7b
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x10041c78
cmp byte [eax], 0x31
jne 0x10041c47
cmp byte [eax + 2], 0x35
je 0x10041c7b
cmp eax, ebx
je 0x10041c78
push str.1.5.2
push eax
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp + 0x240]
push 0x50
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp + 0x240]
push ecx
push edx
call sym.XGUS.dll_png_warning
add esp, 0x1c
mov dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x10041cbc
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 0x50]
push eax
push ecx
call sym.XGUS.dll_png_malloc_warn
mov edx, dword [ebp - 0x50]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 0x50]
add esp, 8
cmp dword [eax + 0xb0], ebx
jne 0x10041cbc
mov dword [ebp - 0x54], edi
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0x98], 0x10043850
mov ecx, dword [ebp - 0x50]
mov dword [edx + 0x9c], sym.XGUS.dll_png_free
mov edx, dword [ebp - 0x54]
mov dword [ecx + 0xa0], eax
test edx, edx
jne case.0x10041cfc.0
mov eax, dword [ebp - 0x50]
add eax, 0x78
call fcn.10078c50
add eax, 6
cmp eax, 6
ja case.0x10041cfc.5
jmp dword [eax*4 + 0x10041df8]
push str.zlib_memory_error
jmp 0x10041d25
mov ecx, dword [ebp - 0x50]
push str.zlib_stream_error
push ecx
jmp 0x10041d29
mov edx, dword [ebp - 0x50]
push str.zlib_version_error
push edx
jmp 0x10041d29
push str.Unknown_zlib_error
mov eax, dword [ebp - 0x50]
push eax
call sym.XGUS.dll_png_warning
mov dword [ebp - 0x54], edi
add esp, 8
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10041d89
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov edx, dword [edx + 0xb0]
cmp eax, ebx
je 0x10041d6a
cmp edx, ebx
je 0x10041d6a
mov ecx, dword [eax + 0x240]
push edx
cmp ecx, ebx
je 0x10041d62
push eax
call ecx
add esp, 8
jmp 0x10041d6a
call sub.MSVCR90.dll_free
add esp, 4
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0xb0], ebx
call fcn.1004ede0
add esp, 4
xor eax, eax
jmp 0x10041ddd
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov eax, dword [eax + 0xb0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x50]
mov edx, dword [eax + 0xb4]
mov dword [ecx + 0x88], edx
cmp esi, ebx
je 0x10041dda
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], 0x10045610
cmp dword [esi + 0x50], ebx
je 0x10041dd4
push str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
push esi
mov dword [esi + 0x50], ebx
call sym.XGUS.dll_png_warning
add esp, 8
mov dword [esi + 0x14c], ebx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x290]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007b2de
add ebp, 0x294
mov esp, ebp
pop ebp
ret