Function at 0x42d480
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x50c
mov ebp, dword [eax]
mov dword [eax + 8], 0
mov dword [esp + 0x28], edx
mov edx, 0xffffff89
mov dword [esp + 0x38], eax
lea esi, [ebp + 0x28]
mov dword [esp + 0x54], ecx
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
jmp 0x42d4e0
mov ecx, dword [ebp + 0x20]
xor eax, eax
test ecx, ecx
jne 0x42d520
cmp al, dl
jne 0x42d4fe
add ebx, 1
cmp ebx, 8
je 0x42d560
movzx edx, byte [ebx + 0x5a7558]
mov eax, dword [ebp + 0xa8]
cmp eax, dword [ebp + 0xac]
jae 0x42d4c0
lea ecx, [eax + 1]
mov dword [ebp + 0xa8], ecx
movzx eax, byte [eax]
cmp al, dl
je 0x42d4cd
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov dword [0x6571e4], 0x5a73b4
add esp, 0x50c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x24]
mov dword [esp + 4], esi
mov byte [esp + 0x24], dl
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call dword [ebp + 0x10]
movzx edx, byte [esp + 0x24]
test eax, eax
je 0x42da90
add eax, esi
mov dword [ebp + 0xac], eax
lea eax, [ebp + 0x29]
mov dword [ebp + 0xa8], eax
movzx eax, byte [ebp + 0x28]
jmp 0x42d4c9
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
mov byte [esp + 0x53], 0
mov byte [esp + 0x52], 0
mov eax, ebp
call fcn.0042bc80
mov ebx, eax
mov eax, ebp
call fcn.0042bc80
cmp eax, 0x49484452
je 0x42db40
ja 0x42d9d0
cmp eax, 0x49444154
je 0x42dab0
cmp eax, 0x49454e44
jne 0x42da68
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42ddb8
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x42dde0
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 4]
test edx, edx
je 0x42dec7
mov ecx, dword [ebp + 4]
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x44]
imul eax, dword [ebp]
mov dword [esp], edx
imul ebx, ecx
add eax, 7
shr eax, 3
imul eax, ebx
add eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x8c], eax
mov dword [esp + 8], eax
xor ecx, 1
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
call fcn.0042d3e0
mov edi, dword [esp + 0x38]
mov dword [edi + 8], eax
test eax, eax
je 0x42deba
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [edi + 4], 0
mov edi, dword [ebp + 8]
lea eax, [edi + 1]
cmp eax, dword [esp + 0x54]
je 0x42e104
cmp byte [esp + 0x53], 0
cmovne edi, eax
mov eax, dword [esp + 0x8c]
mov dword [ebp + 0xc], edi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
test eax, eax
je 0x42de8a
mov eax, edx
mov dword [esp + 0x24], ecx
mov ebx, edx
imul eax, esi
imul eax, edi
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x7c], ebp
mov ecx, dword [esp + 0x24]
mov ebp, ebx
mov dword [esp + 0x30], eax
mov eax, esi
mov dword [esp + 0x3c], 0
jmp 0x42d70d
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
cmp eax, 7
je 0x42df20
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ebp, dword [ecx + 4]
mov dword [esp + 0xc8], 8
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xcc], 8
mov dword [esp + 0xd0], 4
mov dword [esp + 0xd4], 4
mov dword [esp + 0xd8], 2
mov dword [esp + 0xdc], 2
mov dword [esp + 0xe0], 1
mov ebx, dword [esp + edx*4 + 0xc8]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 4
lea eax, [ebx + eax - 1]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 2
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], 0
mov esi, dword [esp + edx*4 + 0x90]
xor edx, edx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
sub eax, esi
div ebx
mov dword [esp + 0xb4], 4
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 2
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 1
mov dword [esp + 0xe4], 8
mov dword [esp + 0xe8], 8
mov dword [esp + 0xec], 8
mov dword [esp + 0xf0], 4
mov dword [esp + 0xf4], 4
mov dword [esp + 0xf8], 2
mov dword [esp + 0xfc], 2
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + edx*4 + 0xac]
mov edx, dword [esp + edx*4 + 0xe4]
mov dword [esp + 0x28], eax
lea eax, [edx + ebp - 1]
mov ebp, edx
sub eax, dword [esp + 0x28]
mov dword [esp + 0x60], edx
xor edx, edx
div ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x58], eax
test ebp, ebp
je 0x42d6f0
test eax, eax
je 0x42d6f0
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0x24]
mov dword [esp], edi
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x58]
imul eax, edx
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ecx
imul eax, ebp
mov ebp, edx
mov edx, dword [esp + 0x6c]
add eax, 7
sar eax, 3
add eax, 1
imul eax, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
call fcn.0042c580
test eax, eax
je 0x42e2d8
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], eax
test edx, edx
jle 0x42d9aa
imul ebp, edi
mov dword [esp + 0x5c], eax
imul ebx, edi
mov dword [esp + 0x48], 0
imul esi, edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x68], esi
mov ebp, dword [esp + 0x24]
test ebp, ebp
jle 0x42d98b
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
mov esi, dword [esp + 0x68]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, ebp
mov ebp, esi
mov esi, eax
lea esi, [esi]
mov ecx, dword [esp + 0x2c]
add ebx, 1
mov eax, dword [ecx]
mov dword [esp + 4], esi
add esi, edi
mov dword [esp + 8], edi
imul eax, edi
imul eax, dword [esp + 0x28]
add eax, ebp
add eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add ebp, dword [esp + 0x34]
cmp dword [esp + 0x24], ebx
jne 0x42d958
add dword [esp + 0x48], 1
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
add dword [esp + 0x5c], esi
add dword [esp + 0x28], edx
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x58], eax
jne 0x42d930
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x78]
add dword [esp + 0x6c], ecx
sub dword [esp + 0x70], ecx
jmp 0x42d6f0
cmp eax, 0x504c5445
je 0x42dc98
cmp eax, 0x74524e53
jne 0x42dc68
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42ddb8
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
test eax, eax
jne 0x42e211
cmp byte [esp + 0x52], 0
je 0x42dd20
cmp dword [esp + 0x28], 2
je 0x42e2b5
mov edi, dword [esp + 0x30]
test edi, edi
je 0x42e2c9
cmp dword [esp + 0x30], ebx
jb 0x42e0e8
xor edi, edi
lea esi, [esp + 0x100]
test ebx, ebx
je 0x42da52
lea esi, [esi]
mov eax, ebp
call fcn.0042bbf0
mov byte [esi + edi*4 + 3], al
add edi, 1
cmp edi, ebx
jne 0x42da40
mov byte [esp + 0x52], 4
mov eax, ebp
call fcn.0042bc80
jmp 0x42d5aa
cmp eax, 0x43674249
jne 0x42dc68
mov eax, ebp
mov edx, ebx
call fcn.0042b780
mov eax, ebp
mov dword [esp + 0x4c], 1
call fcn.0042bc80
jmp 0x42d5aa
lea eax, [ebp + 0x29]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0xac], eax
mov byte [ebp + 0x28], 0
jmp 0x42d550
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x42ddb8
cmp byte [esp + 0x52], 0
je 0x42dacf
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x42e1c6
cmp dword [esp + 0x28], 2
je 0x42e220
mov eax, dword [esp + 0x2c]
lea esi, [eax + ebx]
cmp esi, eax
jl 0x42db30
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x34]
cmp esi, eax
ja 0x42ddf0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xac]
mov eax, dword [ebp + 0xa8]
add edi, dword [esp + 0x2c]
test edx, edx
je 0x42db1b
mov edx, ecx
sub edx, eax
cmp ebx, edx
jg 0x42ded6
lea edx, [eax + ebx]
cmp ecx, edx
jae 0x42de40
mov dword [0x6571e4], str.outofdata
mov eax, dword [esp + 0x24]
add esp, 0x50c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42e1eb
cmp ebx, 0xd
jne 0x42e1fa
mov eax, ebp
call fcn.0042bc80
mov dword [ebp], eax
cmp eax, 0x1000000
ja 0x42e123
mov eax, ebp
call fcn.0042bc80
mov dword [ebp + 4], eax
cmp eax, 0x1000000
ja 0x42e123
mov eax, ebp
call fcn.0042bbf0
movzx ecx, al
sub eax, 4
mov dword [esp + 0x44], ecx
test al, 0xfb
je 0x42dba0
lea eax, [ecx - 1]
cmp eax, 1
ja 0x42e0d1
mov eax, ebp
call fcn.0042bbf0
mov ebx, eax
movzx eax, al
mov dword [esp + 0x40], eax
cmp eax, 6
jg 0x42e149
cmp dword [esp + 0x40], 3
je 0x42de80
test bl, 1
jne 0x42e149
mov eax, ebp
call fcn.0042bbf0
test al, al
jne 0x42e235
mov eax, ebp
call fcn.0042bbf0
test al, al
jne 0x42e24c
mov eax, ebp
call fcn.0042bbf0
movzx eax, al
mov dword [esp + 0x3c], eax
cmp eax, 1
jg 0x42e263
mov ecx, dword [ebp]
test ecx, ecx
je 0x42e160
mov esi, dword [ebp + 4]
test esi, esi
je 0x42e160
cmp byte [esp + 0x52], 0
jne 0x42dd88
and ebx, 2
mov ebx, dword [esp + 0x40]
mov eax, 3
cmove eax, dword [esp + 0x24]
xor edx, edx
sar ebx, 2
add ebx, eax
mov eax, 0x40000000
div ecx
mov dword [ebp + 8], ebx
xor edx, edx
div ebx
cmp esi, eax
ja 0x42e123
cmp dword [esp + 0x28], 2
jne 0x42dda0
jmp 0x42db30
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x42ddb8
test eax, 0x20000000
je 0x42e1d5
mov eax, ebp
mov edx, ebx
call fcn.0042b780
mov eax, ebp
call fcn.0042bc80
jmp 0x42d5aa
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42ddb8
cmp ebx, 0x300
ja 0x42e13a
mov edx, 0xaaaaaaab
mov eax, ebx
mul edx
mov edi, edx
and edx, 0xfffffffe
shr edi, 1
add edx, edi
mov dword [esp + 0x30], edi
cmp edx, ebx
jne 0x42e13a
cmp edx, 2
jbe 0x42e0f7
xor ebx, ebx
lea esi, [esp + 0x100]
mov eax, ebp
call fcn.0042bbf0
mov byte [esi + ebx*4], al
mov eax, ebp
call fcn.0042bbf0
mov byte [esi + ebx*4 + 1], al
mov eax, ebp
call fcn.0042bbf0
mov byte [esi + ebx*4 + 3], 0xff
mov byte [esi + ebx*4 + 2], al
add ebx, 1
cmp edi, ebx
ja 0x42dce0
mov eax, ebp
call fcn.0042bc80
jmp 0x42d5aa
mov eax, dword [ebp + 8]
test al, 1
je 0x42e2a6
lea edx, [eax + eax]
cmp edx, ebx
jne 0x42e0e8
mov byte [esp + 0x53], 1
test eax, eax
jle 0x42da57
mov eax, dword [esp + 0x44]
xor esi, esi
movzx ebx, byte [eax + 0x5a7560]
mov eax, ebp
call fcn.0042bbf0
mov eax, ebp
call fcn.0042bbf0
imul eax, ebx
mov byte [esp + esi + 0x89], al
add esi, 1
cmp dword [ebp + 8], esi
jg 0x42dd50
mov eax, ebp
mov byte [esp + 0x53], 1
call fcn.0042bc80
jmp 0x42d5aa
mov eax, 0x10000000
xor edx, edx
mov dword [ebp + 8], 1
div ecx
cmp esi, eax
ja 0x42e123
mov eax, ebp
mov dword [esp + 0x24], 0
call fcn.0042bc80
jmp 0x42d5aa
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov dword [0x6571e4], 0x5a7445
add esp, 0x50c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 1
jmp 0x42db30
test eax, eax
jne 0x42de70
mov eax, 0x1000
cmp ebx, eax
cmovae eax, ebx
mov dword [esp + 0x34], eax
cmp esi, eax
jbe 0x42de1a
lea esi, [esi]
lea esi, [esi]
add eax, eax
cmp esi, eax
ja 0x42de10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
mov edi, eax
test eax, eax
je 0x42e38e
mov eax, dword [esp + 0x38]
mov dword [eax + 4], edi
jmp 0x42daf8
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
add dword [ebp + 0xa8], ebx
mov eax, ebp
mov dword [esp + 0x2c], esi
call fcn.0042bc80
jmp 0x42d5aa
mov eax, dword [esp + 0x34]
jmp 0x42de10
mov byte [esp + 0x52], 3
jmp 0x42dbcd
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
call fcn.0042c580
test eax, eax
jne 0x42df2f
mov dword [esp + 0x24], 0
jmp 0x42db30
mov dword [0x6571e4], str.no_IDAT
jmp 0x42db30
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x2c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x2c]
sub ebx, edx
add edx, edi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call dword [ebp + 0x10]
mov edx, dword [ebp + 0xac]
mov dword [ebp + 0xa8], edx
cmp ebx, eax
je 0x42de56
jmp 0x42db26
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x7c]
mov dword [eax + 0xc], edi
cmp byte [esp + 0x53], 0
jne 0x42e060
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x42df96
mov esi, dword [0x657080]
test esi, esi
je 0x42df96
cmp dword [ebp + 0xc], 2
jle 0x42df96
mov edi, dword [esp + 0x38]
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov edi, dword [eax]
imul edi, dword [eax + 4]
cmp dword [eax + 0xc], 3
je 0x42e359
mov ebx, dword [0x657084]
test ebx, ebx
jne 0x42e2ed
xor eax, eax
test edi, edi
je 0x42df96
movzx edx, byte [ecx + eax*4]
movzx ebx, byte [ecx + eax*4 + 2]
mov byte [ecx + eax*4 + 2], dl
mov byte [ecx + eax*4], bl
add eax, 1
cmp edi, eax
jne 0x42df7f
cmp byte [esp + 0x52], 0
je 0x42e03d
mov eax, dword [esp + 0x54]
movzx edi, byte [esp + 0x52]
mov ecx, dword [esp + 0x38]
cmp eax, 3
mov dword [ebp + 8], edi
cmovge edi, eax
mov dword [ebp + 0xc], edi
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
mov ebp, dword [eax]
imul ebp, dword [eax + 4]
mov eax, edi
imul eax, ebp
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x42e37f
cmp edi, 3
je 0x42e177
mov edx, esi
lea ecx, [esi + ebp]
test ebp, ebp
je 0x42e02e
mov ebp, eax
movzx edi, byte [edx]
add edx, 1
add eax, 4
shl edi, 2
movzx ebx, byte [esp + edi + 0x100]
mov byte [eax - 4], bl
movzx ebx, byte [esp + edi + 0x101]
mov byte [eax - 3], bl
movzx ebx, byte [esp + edi + 0x102]
mov byte [eax - 2], bl
movzx ebx, byte [esp + edi + 0x103]
mov byte [eax - 1], bl
cmp edx, ecx
jne 0x42dff0
mov ebx, ebp
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x38]
mov dword [eax + 0xc], ebx
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 8]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [edi + 8], 0
mov dword [esp + 0x24], 1
jmp 0x42db30
mov edi, dword [esp + 0x38]
mov eax, dword [edi]
mov ecx, dword [eax]
imul ecx, dword [eax + 4]
cmp dword [ebp + 0xc], 2
mov eax, dword [edi + 0xc]
je 0x42e27a
test ecx, ecx
je 0x42df3a
mov dword [esp + 0x24], ecx
movzx ebx, byte [esp + 0x89]
xor edx, edx
movzx esi, byte [esp + 0x8a]
movzx edi, byte [esp + 0x8b]
jmp 0x42e0b5
add edx, 1
cmp dword [esp + 0x24], edx
je 0x42df3a
cmp byte [eax + edx*4], bl
jne 0x42e0a8
mov ecx, esi
cmp byte [eax + edx*4 + 1], cl
jne 0x42e0a8
mov ecx, edi
cmp byte [eax + edx*4 + 2], cl
jne 0x42e0a8
mov byte [eax + edx*4 + 3], 0
jmp 0x42e0a8
mov dword [0x6571e4], str.1_2_4_8_bit_only
mov dword [esp + 0x24], 0
jmp 0x42db30
mov dword [0x6571e4], str.bad_tRNS_len
jmp 0x42db30
mov dword [esp + 0x30], 0
jmp 0x42da57
cmp dword [esp + 0x54], 3
je 0x42d68a
cmp byte [esp + 0x52], 0
jne 0x42d68a
mov edi, dword [esp + 0x54]
jmp 0x42d692
mov dword [0x6571e4], str.too_large
mov dword [esp + 0x24], 0
jmp 0x42db30
mov dword [0x6571e4], str.invalid_PLTE
jmp 0x42db30
mov dword [0x6571e4], str.bad_ctype
mov dword [esp + 0x24], 0
jmp 0x42db30
mov dword [0x6571e4], str.0_pixel_image
mov dword [esp + 0x24], 0
jmp 0x42db30
test ebp, ebp
je 0x42e02e
lea edi, [ebp + ebp*2]
mov ecx, esi
mov ebp, eax
add edi, eax
lea esi, [esi]
movzx edx, byte [ecx]
add eax, 3
add ecx, 1
shl edx, 2
movzx ebx, byte [esp + edx + 0x100]
mov byte [eax - 3], bl
movzx ebx, byte [esp + edx + 0x101]
movzx edx, byte [esp + edx + 0x102]
mov byte [eax - 2], bl
mov byte [eax - 1], dl
cmp edi, eax
jne 0x42e190
jmp 0x42e02c
mov dword [0x6571e4], str.no_PLTE
jmp 0x42db30
mov dword [0x6571e4], str.XXXX_PNG_chunk_not_known
bswap eax
mov dword [str.XXXX_PNG_chunk_not_known], eax
jmp 0x42db30
mov dword [0x6571e4], str.multiple_IHDR
jmp 0x42db30
mov dword [0x6571e4], str.bad_IHDR_len
mov dword [esp + 0x24], 0
jmp 0x42db30
mov dword [0x6571e4], str.tRNS_after_IDAT
jmp 0x42db30
movzx eax, byte [esp + 0x52]
mov dword [esp + 0x24], 1
mov dword [ebp + 8], eax
jmp 0x42db30
mov dword [0x6571e4], str.bad_comp_method
mov dword [esp + 0x24], 0
jmp 0x42db30
mov dword [0x6571e4], str.bad_filter_method
mov dword [esp + 0x24], 0
jmp 0x42db30
mov dword [0x6571e4], str.bad_interlace_method
mov dword [esp + 0x24], 0
jmp 0x42db30
test ecx, ecx
je 0x42df3a
movzx esi, byte [esp + 0x89]
xor edx, edx
mov ebx, esi
cmp byte [eax + edx*2], bl
setne bl
neg ebx
mov byte [eax + edx*2 + 1], bl
add edx, 1
cmp ecx, edx
jne 0x42e28c
jmp 0x42df3a
mov dword [0x6571e4], str.tRNS_with_alpha
jmp 0x42db30
mov dword [ebp + 8], 4
mov dword [esp + 0x24], 1
jmp 0x42db30
mov dword [0x6571e4], str.tRNS_before_PLTE
jmp 0x42db30
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x42db30
test edi, edi
je 0x42df96
mov dword [esp + 0x24], 0
jmp 0x42e346
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv ebx
movzx edx, byte [ecx + 1]
mov byte [ecx], al
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv ebx
mov byte [ecx + 1], al
mov eax, esi
movzx esi, al
mov eax, esi
shl eax, 8
sub eax, esi
cdq
idiv ebx
mov esi, eax
mov eax, esi
add dword [esp + 0x24], 1
add ecx, 4
mov byte [ecx - 2], al
mov eax, dword [esp + 0x24]
cmp edi, eax
je 0x42df96
movzx ebx, byte [ecx + 3]
movzx esi, byte [ecx]
movzx edx, byte [ecx + 2]
test bl, bl
jne 0x42e2ff
mov byte [ecx], dl
jmp 0x42e32d
test edi, edi
je 0x42df96
lea eax, [edi + edi*2]
add eax, ecx
movzx edx, byte [ecx]
movzx ebx, byte [ecx + 2]
add ecx, 3
mov byte [ecx - 3], bl
mov byte [ecx - 1], dl
cmp ecx, eax
jne 0x42e366
jmp 0x42df96
mov dword [0x6571e4], str.outofmem
jmp 0x42deba
mov dword [0x6571e4], str.outofmem
jmp 0x42db30