Function at 0x46246b
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x487304]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x410], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x40c], ebx
mov esi, dword [ebx]
push esi
mov byte [ebp - 0x405], al
mov byte [ebp - 0x406], al
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
call fcn.0045f660
pop ecx
test eax, eax
je 0x462be6
cmp dword [ebp + 0xc], 1
je 0x462a35
push esi
call fcn.004610c1
mov edi, eax
pop ecx
cmp edx, 0x43674249
je 0x4629e5
cmp edx, 0x49444154
je 0x46292f
cmp edx, 0x49454e44
je 0x462a8e
cmp edx, 0x49484452
je 0x462760
cmp edx, 0x504c5445
je 0x46262d
cmp edx, 0x74524e53
je 0x462558
cmp dword [ebp - 0x410], 0
jne 0x462a52
test edx, 0x20000000
je 0x4629f5
push edi
push esi
call fcn.0046450f
pop ecx
pop ecx
jmp 0x4625e7
cmp dword [ebp - 0x410], 0
jne 0x462a52
cmp dword [ebx + 4], 0
jne 0x462a44
cmp byte [ebp - 0x405], 0
je 0x4625f3
cmp dword [ebp + 0xc], 2
je 0x462a2e
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x462a27
cmp edi, eax
ja 0x462a20
xor ebx, ebx
mov byte [ebp - 0x405], 4
test edi, edi
je 0x4625e1
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4625be
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4625d5
cmp dword [esi + 0x20], 0
je 0x4625d3
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
pop ecx
jmp 0x4625b3
xor cl, cl
mov byte [ebp + ebx*4 - 0x401], cl
inc ebx
cmp ebx, edi
jb 0x4625a5
mov ebx, dword [ebp - 0x40c]
push esi
call fcn.00461081
pop ecx
jmp 0x4624e4
mov ecx, dword [esi + 8]
test cl, 1
je 0x462a3d
lea eax, [ecx + ecx]
cmp edi, eax
jne 0x462a20
xor edi, edi
mov byte [ebp - 0x406], 1
test ecx, ecx
jle 0x4625e7
push esi
call fcn.00460f71
mov byte [ebp + edi - 0x42c], al
inc edi
pop ecx
cmp edi, dword [esi + 8]
jl 0x462617
jmp 0x4625e7
cmp dword [ebp - 0x410], 0
jne 0x462a52
cmp edi, 0x300
ja 0x462a4b
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
imul ecx, eax, 3
mov dword [ebp - 0x414], eax
cmp ecx, edi
jne 0x462a4b
xor edx, edx
mov dword [ebp - 0x41c], edx
test eax, eax
je 0x4625e7
lea edi, [esi + 0x20]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x46268c
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4626b4
lea edi, [esi + 0x20]
cmp dword [edi], 0
je 0x4626b2
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4626b4
xor cl, cl
mov ebx, edi
mov byte [ebp + edx*4 - 0x404], cl
cmp eax, dword [esi + 0xac]
jae 0x4626d3
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4626fa
cmp dword [ebx], 0
mov edi, ebx
je 0x4626f8
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4626fa
xor cl, cl
mov byte [ebp + edx*4 - 0x403], cl
cmp eax, dword [esi + 0xac]
jae 0x462714
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x462739
cmp dword [ebx], 0
je 0x462737
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
mov edx, dword [ebp - 0x41c]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x462739
xor cl, cl
mov byte [ebp + edx*4 - 0x402], cl
mov byte [ebp + edx*4 - 0x401], 0xff
inc edx
mov dword [ebp - 0x41c], edx
cmp edx, dword [ebp - 0x414]
jb 0x462673
jmp 0x4625e1
cmp dword [ebp - 0x410], 0
je 0x462a7c
and dword [ebp - 0x410], 0
cmp edi, 0xd
jne 0x462a75
push esi
call fcn.00461081
mov ebx, 0x1000000
mov dword [esi], eax
pop ecx
cmp eax, ebx
ja 0x462925
push esi
call fcn.00461081
mov dword [esi + 4], eax
pop ecx
cmp eax, ebx
ja 0x462925
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jb 0x4627ca
cmp dword [esi + 0x20], 0
je 0x462a6e
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 8
jne 0x462a6e
cmp eax, dword [esi + 0xac]
jb 0x4627f7
cmp dword [esi + 0x20], 0
je 0x462826
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
movzx ebx, cl
mov dword [esi + 0xa8], eax
cmp ebx, 6
ja 0x46281c
push 3
pop ecx
cmp ebx, ecx
jne 0x462817
mov byte [ebp - 0x405], cl
jmp 0x462828
test bl, 1
je 0x462828
push str.bad_ctype
jmp 0x462a81
xor ebx, ebx
cmp eax, dword [esi + 0xac]
jb 0x462843
cmp dword [esi + 0x20], 0
je 0x462854
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x462a59
cmp eax, dword [esi + 0xac]
jb 0x46286f
cmp dword [esi + 0x20], 0
je 0x462880
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
test cl, cl
jne 0x462a60
cmp eax, dword [esi + 0xac]
jb 0x46289b
cmp dword [esi + 0x20], 0
je 0x4628bc
push esi
call fcn.00464296
mov eax, dword [esi + 0xa8]
pop ecx
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
movzx eax, cl
mov dword [ebp - 0x424], eax
cmp eax, 1
jbe 0x4628c3
push str.bad_interlace_method
jmp 0x462a81
and dword [ebp - 0x424], 0
cmp dword [esi], 0
je 0x462a67
mov edi, dword [esi + 4]
test edi, edi
je 0x462a67
xor edx, edx
mov eax, 0x40000000
div dword [esi]
cmp byte [ebp - 0x405], 0
jne 0x462913
mov ecx, ebx
xor edx, edx
shr ecx, 2
and ebx, 2
and ecx, 1
or ebx, 1
add ecx, ebx
div ecx
mov dword [esi + 8], ecx
cmp eax, edi
jb 0x462925
cmp dword [ebp + 0xc], 2
je 0x462a35
jmp 0x4625e1
shr eax, 2
mov dword [esi + 8], 1
cmp eax, edi
jae 0x4625e1
push str.too_large
jmp 0x462a81
cmp dword [ebp - 0x410], 0
jne 0x462a52
mov al, byte [ebp - 0x405]
test al, al
je 0x462953
cmp dword [ebp - 0x414], 0
je 0x462bbd
cmp dword [ebp + 0xc], 2
je 0x462bdb
mov ebx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x418]
add ebx, edi
cmp ebx, eax
jbe 0x4629b8
test eax, eax
jne 0x462985
mov ecx, 0x1000
cmp edi, ecx
mov eax, ecx
cmova eax, edi
mov dword [ebp - 0x418], eax
cmp ebx, eax
jbe 0x462995
add eax, eax
cmp ebx, eax
ja 0x462989
mov dword [ebp - 0x418], eax
push eax
mov eax, dword [ebp - 0x40c]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x462bc7
mov ecx, dword [ebp - 0x40c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x40c]
push edi
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x420]
push eax
push esi
call fcn.0046116b
add esp, 0xc
test eax, eax
je 0x462bd1
mov dword [ebp - 0x420], ebx
jmp 0x4625e1
mov eax, dword [0x488b50]
mov dword [ebp - 0x428], eax
jmp 0x46254a
mov eax, edx
mov byte [0x4872cb], dl
shr eax, 0x18
mov byte [str.XXXX_chunk_not_known], al
mov eax, edx
shr eax, 0x10
mov byte [0x4872c9], al
mov eax, edx
shr eax, 8
mov byte [0x4872ca], al
push str.XXXX_chunk_not_known
jmp 0x462a81
push str.bad_tRNS_len
jmp 0x462a81
push str.tRNS_before_PLTE
jmp 0x462a81
mov dword [esi + 8], 4
xor eax, eax
inc eax
jmp 0x462be8
push str.tRNS_with_alpha
jmp 0x462a81
push str.tRNS_after_IDAT
jmp 0x462a81
push str.invalid_PLTE
jmp 0x462a81
push str.first_not_IHDR
jmp 0x462a81
push str.bad_comp_method
jmp 0x462a81
push str.bad_filter_method
jmp 0x462a81
push str.0_pixel_image
jmp 0x462a81
push str.8bit_only
jmp 0x462a81
push str.bad_IHDR_len
jmp 0x462a81
push str.multiple_IHDR
call fcn.00460df0
add esp, 4
jmp 0x462be8
cmp dword [ebp - 0x410], 0
jne 0x462a52
cmp dword [ebp + 0xc], 0
jne 0x462a35
cmp dword [ebx + 4], 0
jne 0x462aaa
push str.no_IDAT
jmp 0x462a81
xor eax, eax
cmp dword [ebp - 0x428], eax
sete al
push eax
lea eax, [ebp - 0x418]
push eax
push 0x4000
push dword [ebp - 0x420]
push dword [ebx + 4]
call fcn.00465438
add esp, 0x14
mov dword [ebx + 8], eax
test eax, eax
je 0x462be6
push dword [ebx + 4]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
and dword [ebx + 4], 0
mov edx, dword [ebp + 0x10]
pop ecx
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
cmp edx, eax
jne 0x462b09
cmp edx, 3
je 0x462b09
cmp byte [ebp - 0x405], 0
je 0x462b14
cmp byte [ebp - 0x406], 0
jne 0x462b14
mov eax, ecx
mov ecx, dword [ebp - 0x424]
push ecx
push eax
mov dword [esi + 0xc], eax
push dword [ebp - 0x418]
push dword [ebx + 8]
push ebx
call fcn.0045fdb3
add esp, 0x14
test eax, eax
je 0x462be6
cmp byte [ebp - 0x406], 0
je 0x462b5d
push dword [esi + 0xc]
lea eax, [ebp - 0x42c]
push eax
push ebx
call fcn.0045fa37
add esp, 0xc
test eax, eax
je 0x462be6
cmp dword [ebp - 0x428], 0
je 0x462b73
cmp dword [esi + 0xc], 2
jle 0x462b73
push ebx
call fcn.0046459b
pop ecx
mov al, byte [ebp - 0x405]
test al, al
je 0x462bae
mov ecx, dword [ebp + 0x10]
movzx eax, al
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
cmp ecx, 3
jl 0x462b93
mov dword [esi + 0xc], ecx
mov eax, ecx
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.00460e6e
add esp, 0x10
test eax, eax
je 0x462be6
push dword [ebx + 8]
call edi
and dword [ebx + 8], 0
pop ecx
jmp 0x462a35
push str.no_PLTE
jmp 0x462a81
push str.outofmem
jmp 0x462a81
push str.outofdata
jmp 0x462a81
movzx eax, al
mov dword [esi + 8], eax
jmp 0x462a35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004662d8
leave
ret