Function at 0x509ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x38ec
mov ebp, esp
push edi
push esi
push ebx
call fcn.004ce940
lea ebx, [ebp - 0x18]
sub esp, eax
mov dword [ebp - 0x3888], ecx
mov dword [ebp - 0x3834], esp
mov dword [ebp - 0x3844], 0x607c20
mov dword [ebp - 0x383c], ebx
lea ebx, [ebp - 0x385c]
mov dword [ebp - 0x3840], 0x60f0c4
mov dword [ebp - 0x3838], 0x50a0b6
mov dword [esp], ebx
call fcn.004cf190
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov ecx, dword [ebp - 0x3888]
mov dword [ebp - 0x3858], 0xffffffff
call fcn.00544f80
mov eax, dword [ebp - 0x3888]
sub esp, 0xc
mov dword [eax], fcn.0054f560
mov dword [eax + 0x1c], 0
mov ecx, eax
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [esp], 0
mov dword [ebp - 0x3858], 2
mov dword [ebp - 0x3888], eax
call fcn.0054f1d0
mov ecx, dword [ebp - 0x3888]
sub esp, 4
call fcn.0054edc0
mov eax, dword [ebp - 0x3888]
mov dword [eax], 0x742148
mov dword [esp + 4], 0x65a448
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call fcn.00608a20
test eax, eax
mov dword [ebp - 0x3860], eax
je 0x509f91
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2018]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_fread
cmp eax, 5
jbe 0x509f71
cmp byte [ebp - 0x2018], 0x47
je 0x509d35
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_fclose
mov eax, dword [ebp + 8]
mov dword [esp], str.Fl_GIF_Image:__s_is_not_a_GIF_file._n
mov dword [esp + 4], eax
call dword [0x621150]
mov eax, dword [ebp - 0x3888]
mov dword [eax + 0x10], 0xfffffffd
lea eax, [ebp - 0x385c]
mov dword [esp], eax
call fcn.004cf200
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
cmp byte [ebp - 0x2017], 0x49
jne 0x509ce4
cmp byte [ebp - 0x2016], 0x46
jne 0x509ce4
movsx ecx, byte [ebp - 0x2015]
movsx edx, byte [ebp - 0x2014]
movsx eax, byte [ebp - 0x2013]
cmp cl, 0x38
jne 0x509d6a
cmp dl, 0x39
jg 0x509d6a
cmp al, 0x61
je 0x509d95
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp], str._s_is_version__c_c_c.
mov dword [esp + 4], eax
mov eax, dword [0x62117c]
mov dword [ebp - 0x3858], 1
call eax
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov ecx, eax
mov dword [ebp - 0x3864], eax
mov dword [ebp - 0x3870], 0
and ecx, 7
test al, al
lea edi, [ecx + 1]
mov dword [ebp - 0x3868], edi
jns 0x509e1e
mov eax, 2
shl eax, cl
mov dword [ebp - 0x3870], eax
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
cmp byte [ebp - 0x3864], 0
js 0x50a02d
mov byte [ebp - 0x3896], 0
mov byte [ebp - 0x3895], 0
jmp 0x509e8d
cmp eax, 0x2c
je 0x50a0de
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], str._s:_unknown_gif_code_0x_02x
mov dword [esp + 4], eax
mov eax, dword [0x62117c]
mov dword [ebp - 0x3858], 1
call eax
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
movzx eax, al
cmp eax, 0x21
jne 0x509e61
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov dword [ebp - 0x386c], eax
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
cmp byte [ebp - 0x386c], 0xf9
movzx esi, al
mov dword [ebp - 0x3864], esi
jne 0x509eea
cmp esi, 4
je 0x509fa7
mov esi, dword [ebp - 0x386c]
mov eax, esi
add eax, 2
cmp al, 1
jbe 0x509f21
mov eax, esi
movzx eax, al
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], str._s:_unknown_gif_extension_0x_02x.
mov dword [esp + 4], eax
mov eax, dword [0x62117c]
mov dword [ebp - 0x3858], 1
call eax
mov eax, dword [ebp - 0x3864]
test eax, eax
je 0x509e8d
nop
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
sub dword [ebp - 0x3864], 1
jne 0x509f30
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
movzx eax, al
test eax, eax
mov dword [ebp - 0x3864], eax
jne 0x509f30
jmp 0x509e8d
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x3888]
mov dword [eax + 0x10], 0xfffffffe
jmp 0x509d1d
mov eax, dword [ebp + 8]
mov dword [esp], str.Fl_GIF_Image:_Unable_to_open__s_
mov dword [esp + 4], eax
call dword [0x621150]
jmp 0x509f7f
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov dword [ebp - 0x3864], eax
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
movzx ebx, byte [ebp - 0x3896]
test byte [ebp - 0x3864], 1
mov byte [ebp - 0x3895], al
mov eax, 1
cmovne ebx, eax
mov eax, dword [ebp - 0x3860]
mov byte [ebp - 0x3896], bl
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
movzx eax, al
mov dword [ebp - 0x3864], eax
jmp 0x509f21
mov eax, dword [ebp - 0x3870]
test eax, eax
je 0x509e51
mov dword [ebp - 0x3864], 0
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
mov edi, dword [ebp - 0x3864]
mov byte [ebp + edi - 0x3819], al
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov edi, dword [ebp - 0x3864]
mov byte [ebp + edi - 0x3719], al
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov edi, dword [ebp - 0x3864]
mov byte [ebp + edi - 0x3619], al
add edi, 1
cmp dword [ebp - 0x3870], edi
mov dword [ebp - 0x3864], edi
jne 0x50a045
jmp 0x509e51
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
movzx esi, al
mov eax, dword [ebp - 0x3860]
mov dword [ebp - 0x3864], esi
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov esi, dword [ebp - 0x3864]
movzx eax, al
shl eax, 8
add esi, eax
mov eax, dword [ebp - 0x3860]
mov dword [ebp - 0x3874], esi
mov dword [esp], eax
call sub.msvcrt.dll_getc
movzx ebx, al
mov eax, dword [ebp - 0x3860]
mov dword [ebp - 0x3864], ebx
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov edi, dword [ebp - 0x3864]
movzx eax, al
shl eax, 8
add edi, eax
mov eax, dword [ebp - 0x3860]
mov dword [ebp - 0x3884], edi
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov ebx, eax
and ebx, 0x40
test al, al
mov dword [ebp - 0x38d4], ebx
js 0x50a640
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
movzx eax, al
mov dword [ebp - 0x386c], eax
add eax, 1
cmp dword [ebp - 0x3868], eax
mov dword [ebp - 0x38b8], eax
jl 0x50a1f9
movzx ecx, byte [ebp - 0x386c]
mov eax, 1
shl eax, cl
mov dword [ebp - 0x3870], eax
mov eax, dword [ebp - 0x3870]
test eax, eax
jne 0x50a29b
mov eax, dword [ebp + 8]
mov dword [esp], str._s_does_not_have_a_color_table__using_default._n
mov dword [esp + 4], eax
mov eax, dword [0x62117c]
mov dword [ebp - 0x3858], 1
call eax
movzx ecx, byte [ebp - 0x386c]
mov eax, 1
mov byte [ebp - 0x3619], 0
mov byte [ebp - 0x3719], 0
mov byte [ebp - 0x3819], 0
mov byte [ebp - 0x3618], 0xff
mov byte [ebp - 0x3718], 0xff
mov byte [ebp - 0x3818], 0xff
shl eax, cl
cmp eax, 2
mov dword [ebp - 0x3870], eax
jle 0x50a29b
lea ebx, [eax - 1]
mov ecx, 2
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
idiv ebx
mov byte [ebp + ecx - 0x3619], al
mov byte [ebp + ecx - 0x3719], al
mov byte [ebp + ecx - 0x3819], al
add ecx, 1
cmp dword [ebp - 0x3870], ecx
jne 0x50a271
mov eax, dword [ebp - 0x3874]
imul eax, dword [ebp - 0x3884]
mov dword [ebp - 0x38c0], eax
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call fcn.00606c50
mov dword [ebp - 0x3868], eax
add eax, dword [ebp - 0x3874]
movzx ecx, byte [ebp - 0x386c]
mov dword [ebp - 0x38a0], eax
mov dword [ebp - 0x3864], eax
mov eax, 1
mov esi, eax
shl esi, cl
movzx ecx, byte [ebp - 0x38b8]
lea edi, [esi + 1]
mov dword [ebp - 0x38b0], esi
mov dword [ebp - 0x38d8], edi
lea edi, [esi + 2]
shl eax, cl
mov ecx, dword [ebp - 0x3860]
lea ebx, [eax - 1]
mov dword [ebp - 0x38c4], edi
mov dword [ebp - 0x38c8], ebx
mov dword [esp], ecx
call sub.msvcrt.dll_getc
mov ecx, dword [ebp - 0x3860]
movzx edx, al
mov dword [ebp - 0x386c], edx
mov dword [esp], ecx
call sub.msvcrt.dll_getc
mov esi, dword [ebp - 0x38b0]
mov edi, dword [ebp - 0x38c4]
mov byte [ebp - 0x3897], al
mov eax, dword [ebp - 0x3868]
mov edx, dword [ebp - 0x386c]
mov ebx, dword [ebp - 0x38c8]
mov dword [ebp - 0x38ac], esi
mov esi, dword [ebp - 0x38b8]
mov dword [ebp - 0x389c], edi
lea edi, [eax + 1]
mov dword [ebp - 0x3878], eax
sub edx, 1
add eax, 2
mov dword [ebp - 0x38a8], ebx
mov dword [ebp - 0x3894], edx
mov dword [ebp - 0x38a4], esi
mov dword [ebp - 0x38b4], 0
mov dword [ebp - 0x388c], 0
mov dword [ebp - 0x3880], 0
mov dword [ebp - 0x386c], 0
mov dword [ebp - 0x3890], edi
mov dword [ebp - 0x38d0], eax
movzx eax, byte [ebp - 0x3897]
mov dword [ebp - 0x387c], eax
mov eax, dword [ebp - 0x38a4]
add eax, dword [ebp - 0x38b4]
cmp eax, 7
mov dword [ebp - 0x38cc], eax
jle 0x50a46f
mov eax, dword [ebp - 0x3894]
test eax, eax
jle 0x50aa50
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
movzx edx, al
sub dword [ebp - 0x3894], 1
shl edx, 8
or dword [ebp - 0x387c], edx
cmp dword [ebp - 0x38cc], 0xf
jle 0x50b011
mov eax, dword [ebp - 0x3894]
test eax, eax
je 0x50aa1a
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
mov byte [ebp - 0x3897], al
movzx eax, al
sub dword [ebp - 0x3894], 1
shl eax, 0x10
or dword [ebp - 0x387c], eax
movzx ecx, byte [ebp - 0x38b4]
mov eax, dword [ebp - 0x387c]
mov edi, dword [ebp - 0x38cc]
sar eax, cl
and eax, dword [ebp - 0x38a8]
and edi, 7
cmp dword [ebp - 0x38b0], eax
mov dword [ebp - 0x38b4], edi
mov dword [ebp - 0x38bc], eax
je 0x50a9e5
cmp dword [ebp - 0x38d8], eax
je 0x50abde
cmp dword [ebp - 0x389c], eax
jg 0x50a9d0
jne 0x50abbf
movzx eax, byte [ebp - 0x388c]
lea ecx, [ebp - 0x3418]
lea ebx, [ebp - 0x3419]
mov byte [ebp - 0x3419], al
mov eax, dword [ebp - 0x38ac]
mov dword [ebp - 0x388c], eax
mov esi, eax
cmp dword [ebp - 0x3870], esi
jg 0x50a51c
mov eax, esi
mov esi, dword [ebp - 0x3870]
movzx edx, byte [ebp + eax - 0x3018]
movsx eax, word [ebp + eax*2 - 0x2018]
add ecx, 1
cmp esi, eax
mov byte [ecx - 1], dl
jle 0x50a4fa
mov dword [ebp - 0x388c], eax
mov esi, eax
mov eax, esi
lea edx, [ecx + 1]
mov byte [ebp - 0x38cc], al
mov byte [ecx], al
mov eax, dword [ebp - 0x38d4]
test eax, eax
je 0x50a8c1
mov ecx, dword [ebp - 0x3880]
mov esi, dword [ebp - 0x386c]
mov edi, dword [ebp - 0x3864]
mov eax, dword [ebp - 0x3878]
mov dword [ebp - 0x3878], ecx
lea ecx, [eax + 1]
sub edx, 1
mov dword [ebp - 0x387c], ecx
movzx ecx, byte [edx]
cmp dword [ebp - 0x387c], edi
mov byte [eax], cl
jb 0x50a62d
cmp dword [ebp - 0x3878], 1
je 0x50a73f
jle 0x50b076
mov eax, dword [ebp - 0x3878]
cmp eax, 2
je 0x50a6d8
cmp eax, 3
jne 0x50a880
mov eax, dword [ebp - 0x3868]
mov dword [ebp - 0x3864], ebx
mov dword [ebp - 0x386c], eax
add esi, 2
cmp dword [ebp - 0x3884], esi
jg 0x50aaa8
cmp edx, dword [ebp - 0x3864]
mov ebx, dword [ebp - 0x38a0]
mov edi, ebx
jbe 0x50ab11
sub edx, 1
movzx ecx, byte [edx]
mov esi, dword [ebp - 0x386c]
mov eax, dword [ebp - 0x3890]
mov byte [esi], cl
xor esi, esi
cmp ebx, eax
jbe 0x50a5af
cmp edx, dword [ebp - 0x3864]
jbe 0x50aff0
mov eax, dword [ebp - 0x38d0]
sub edx, 1
mov ecx, dword [ebp - 0x386c]
mov dword [ebp - 0x387c], eax
movzx eax, byte [edx]
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x38d0]
cmp ebx, eax
jbe 0x50a5af
mov ebx, dword [ebp - 0x3864]
mov dword [ebp - 0x3878], 3
cmp edx, ebx
jbe 0x50ab96
mov eax, dword [ebp - 0x387c]
jmp 0x50a555
and eax, 7
mov edx, 2
mov dword [ebp - 0x3864], 0
mov ecx, eax
lea eax, [eax + 1]
shl edx, cl
mov dword [ebp - 0x3868], eax
mov dword [ebp - 0x3870], edx
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
mov edi, dword [ebp - 0x3864]
mov byte [ebp + edi - 0x3819], al
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov edi, dword [ebp - 0x3864]
mov byte [ebp + edi - 0x3719], al
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
call sub.msvcrt.dll_getc
mov edi, dword [ebp - 0x3864]
mov byte [ebp + edi - 0x3619], al
add edi, 1
cmp dword [ebp - 0x3870], edi
mov dword [ebp - 0x3864], edi
jne 0x50a665
jmp 0x50a1b3
xor esi, esi
add esi, 4
cmp dword [ebp - 0x3884], esi
jg 0x50a7a0
cmp dword [ebp - 0x3884], 1
jg 0x50afdc
mov esi, dword [ebp - 0x38a0]
cmp edx, ebx
mov edi, esi
jbe 0x50ab11
mov eax, dword [ebp - 0x3890]
sub edx, 1
mov esi, dword [ebp - 0x3890]
mov ecx, dword [ebp - 0x3868]
mov dword [ebp - 0x387c], eax
movzx eax, byte [edx]
cmp edi, esi
mov byte [ecx], al
jbe 0x50b1ac
mov dword [ebp - 0x3878], 3
xor esi, esi
jmp 0x50a62d
xor esi, esi
add esi, 8
cmp dword [ebp - 0x3884], esi
jg 0x50a810
cmp dword [ebp - 0x3884], 2
jg 0x50ab82
cmp edx, ebx
mov edi, dword [ebp - 0x38a0]
jbe 0x50ab57
sub edx, 1
movzx eax, byte [edx]
mov esi, dword [ebp - 0x3890]
mov ecx, dword [ebp - 0x3868]
mov dword [ebp - 0x387c], esi
mov byte [ecx], al
mov eax, esi
cmp eax, edi
jae 0x50a6d6
mov dword [ebp - 0x3878], 2
xor esi, esi
jmp 0x50a62d
mov edi, dword [ebp - 0x3874]
mov eax, edi
imul eax, esi
add eax, dword [ebp - 0x3868]
add edi, eax
cmp edx, ebx
jbe 0x50aaf0
lea ecx, [eax + 1]
sub edx, 1
mov dword [ebp - 0x3878], ecx
movzx ecx, byte [edx]
cmp edi, dword [ebp - 0x3878]
mov byte [eax], cl
jbe 0x50a6d8
cmp edx, ebx
jbe 0x50ab3c
lea ecx, [eax + 2]
sub edx, 1
mov dword [ebp - 0x387c], ecx
movzx ecx, byte [edx]
cmp edi, dword [ebp - 0x387c]
mov byte [eax + 1], cl
jbe 0x50a6d8
mov dword [ebp - 0x3878], 2
jmp 0x50a62d
mov edi, dword [ebp - 0x3874]
mov eax, edi
imul eax, esi
add eax, dword [ebp - 0x3868]
add edi, eax
cmp edx, ebx
jbe 0x50aa80
lea ecx, [eax + 1]
sub edx, 1
mov dword [ebp - 0x3878], ecx
movzx ecx, byte [edx]
cmp edi, dword [ebp - 0x3878]
mov byte [eax], cl
jbe 0x50a73f
cmp edx, ebx
jbe 0x50afc1
lea ecx, [eax + 2]
sub edx, 1
mov dword [ebp - 0x387c], ecx
movzx ecx, byte [edx]
cmp edi, dword [ebp - 0x387c]
mov byte [eax + 1], cl
jbe 0x50a73f
mov dword [ebp - 0x3878], 1
jmp 0x50a62d
cmp dword [ebp - 0x3884], esi
jg 0x50a8b6
xor ecx, ecx
xor esi, esi
mov edi, dword [ebp - 0x3868]
mov eax, dword [ebp - 0x3874]
add edi, ecx
mov dword [ebp - 0x387c], edi
add edi, eax
jmp 0x50a62d
mov esi, 4
mov dword [ebp - 0x3878], 1
mov ecx, dword [ebp - 0x3874]
imul ecx, esi
jmp 0x50a88c
mov eax, dword [ebp - 0x3878]
xor edi, edi
mov esi, edx
mov dword [ebp - 0x387c], ebx
sub esi, 1
movzx edx, byte [esi]
lea ebx, [eax + 1]
mov byte [eax], dl
mov eax, dword [ebp - 0x386c]
add eax, 1
cmp dword [ebp - 0x3864], ebx
setbe byte [ebp - 0x3878]
cmp dword [ebp - 0x3884], eax
movzx ecx, byte [ebp - 0x3878]
setg dl
and dl, cl
mov ecx, edi
cmovne ecx, eax
imul eax, dword [ebp - 0x3874]
test dl, dl
mov edx, dword [ebp - 0x3874]
cmove eax, edi
add eax, dword [ebp - 0x3868]
add edx, eax
cmp dword [ebp - 0x3864], ebx
cmova ecx, dword [ebp - 0x386c]
cmova eax, ebx
mov dword [ebp - 0x386c], ecx
mov ecx, dword [ebp - 0x3864]
cmova edx, ecx
cmp esi, dword [ebp - 0x387c]
mov dword [ebp - 0x3864], edx
ja 0x50a8d1
mov dword [ebp - 0x3878], eax
mov ebx, dword [ebp - 0x38ac]
mov edi, dword [ebp - 0x38b0]
mov esi, dword [ebp - 0x389c]
cmp ebx, edi
mov eax, esi
je 0x50a9b9
mov word [ebp + esi*2 - 0x2018], bx
add eax, 1
movzx ebx, byte [ebp - 0x38cc]
cmp dword [ebp - 0x38a8], eax
mov byte [ebp + esi - 0x3018], bl
jge 0x50a9b9
mov edi, dword [ebp - 0x38a4]
cmp edi, 0xb
jg 0x50aaa1
add edi, 1
mov edx, 1
mov ecx, edi
mov dword [ebp - 0x38a4], edi
shl edx, cl
lea esi, [edx - 1]
mov dword [ebp - 0x38a8], esi
mov ebx, dword [ebp - 0x38bc]
mov dword [ebp - 0x389c], eax
mov dword [ebp - 0x38ac], ebx
jmp 0x50a3c2
lea ebx, [ebp - 0x3419]
mov dword [ebp - 0x388c], eax
mov esi, eax
mov ecx, ebx
jmp 0x50a4ea
mov eax, dword [ebp - 0x38b0]
mov dword [ebp - 0x38ac], eax
mov eax, dword [ebp - 0x38c4]
mov dword [ebp - 0x389c], eax
mov eax, dword [ebp - 0x38c8]
mov dword [ebp - 0x38a8], eax
mov eax, dword [ebp - 0x38b8]
mov dword [ebp - 0x38a4], eax
jmp 0x50a3c2
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
movzx eax, al
test eax, eax
mov dword [ebp - 0x3894], eax
jne 0x50a43e
jmp 0x50abde
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_getc
movzx eax, al
test eax, eax
mov dword [ebp - 0x3894], eax
jne 0x50a3f8
jmp 0x50abde
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3878], eax
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x3880], 1
jmp 0x50a956
mov eax, esi
jmp 0x50a9b9
mov ebx, dword [ebp - 0x3874]
mov eax, ebx
imul eax, esi
add eax, dword [ebp - 0x386c]
cmp edx, dword [ebp - 0x3864]
lea edi, [eax + ebx]
jbe 0x50aff0
sub edx, 1
movzx ebx, byte [edx]
lea ecx, [eax + 1]
cmp edi, ecx
mov dword [ebp - 0x387c], ecx
mov byte [eax], bl
jbe 0x50a5af
jmp 0x50a61d
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3878], eax
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x3880], 2
jmp 0x50a956
mov eax, dword [ebp - 0x3868]
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x386c], 0
mov dword [ebp - 0x3880], 3
mov dword [ebp - 0x3878], eax
jmp 0x50a956
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x3880], 2
jmp 0x50a956
mov eax, dword [ebp - 0x3868]
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x386c], 0
mov dword [ebp - 0x3880], 2
mov dword [ebp - 0x3878], eax
jmp 0x50a956
mov esi, 2
mov dword [ebp - 0x3878], 2
jmp 0x50a8b6
mov eax, dword [ebp - 0x3878]
mov ecx, dword [ebp - 0x387c]
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x3880], eax
mov dword [ebp - 0x3878], ecx
jmp 0x50a956
mov eax, dword [ebp + 8]
mov dword [esp], str.Fl_GIF_Image:__s___LZW_Barf_
mov dword [esp + 4], eax
mov eax, dword [0x621150]
mov dword [ebp - 0x3858], 1
call eax
mov eax, dword [ebp - 0x3888]
mov edi, dword [ebp - 0x3884]
mov esi, dword [ebp - 0x3874]
mov dword [eax + 8], edi
mov dword [eax + 0xc], 1
mov dword [eax + 4], esi
lea eax, [edi + 2]
mov dword [ebp - 0x387c], eax
shl eax, 2
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call fcn.00606c50
cmp byte [ebp - 0x3895], 0
mov dword [ebp - 0x3864], eax
je 0x50ada1
mov edx, dword [ebp - 0x3868]
add edx, dword [ebp - 0x38c0]
test byte [ebp - 0x3896], 1
mov eax, edx
jne 0x50ac71
jmp 0x50ada1
movzx ecx, byte [eax - 1]
cmp byte [ebp - 0x3895], cl
je 0x50ad98
test cl, cl
jne 0x50ac6e
movzx ebx, byte [ebp - 0x3895]
mov byte [eax - 1], bl
sub eax, 1
cmp dword [ebp - 0x3868], eax
jb 0x50ac50
movzx eax, byte [ebp - 0x3895]
movzx ecx, byte [ebp - 0x3819]
mov dword [ebp - 0x3878], edx
movzx ebx, byte [ebp + eax - 0x3819]
mov byte [ebp - 0x3819], bl
movzx ebx, byte [ebp + eax - 0x3719]
mov byte [ebp + eax - 0x3819], cl
movzx ecx, byte [ebp - 0x3719]
mov byte [ebp - 0x3719], bl
movzx ebx, byte [ebp + eax - 0x3619]
mov byte [ebp + eax - 0x3719], cl
movzx ecx, byte [ebp - 0x3619]
mov byte [ebp - 0x3619], bl
mov byte [ebp + eax - 0x3619], cl
mov ebx, dword [ebp - 0x3870]
test ebx, ebx
jle 0x50ad04
mov eax, dword [ebp - 0x3870]
lea ecx, [ebp - 0x3519]
mov dword [esp + 4], 0
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x3878]
mov edi, dword [ebp - 0x3868]
mov eax, ebx
lea edx, [edi - 1]
sub eax, 1
cmp edi, ebx
mov dword [ebp - 0x3880], eax
jae 0x50ad34
movzx ecx, byte [eax]
sub eax, 1
cmp eax, edx
mov byte [ebp + ecx - 0x3519], 1
jne 0x50ad22
cmp byte [ebp - 0x3896], 0
mov edx, 0x21
je 0x50ad50
cmp byte [ebp - 0x3519], 1
sbb edx, edx
not edx
add edx, 0x21
mov ecx, dword [ebp - 0x3870]
test ecx, ecx
jle 0x50adb8
lea ecx, [ebp - 0x3519]
mov dword [ebp - 0x386c], 0
xor eax, eax
cmp byte [ecx + eax], 0
je 0x50ad83
add dword [ebp - 0x386c], 1
mov byte [ebp + eax - 0x3419], dl
add edx, 1
add eax, 1
cmp dword [ebp - 0x3870], eax
jne 0x50ad6c
mov eax, dword [ebp - 0x386c]
neg eax
jmp 0x50adc4
mov byte [eax - 1], 0
jmp 0x50ac6e
mov eax, dword [ebp - 0x38c0]
add eax, dword [ebp - 0x3868]
mov dword [ebp - 0x3878], eax
jmp 0x50acda
xor eax, eax
mov dword [ebp - 0x386c], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3884]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3874]
mov dword [esp + 4], 0x65a539
mov dword [esp + 8], eax
lea eax, [ebp - 0x3018]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
add eax, 1
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call fcn.00606c50
mov ebx, dword [ebp - 0x3864]
lea esi, [ebp - 0x3018]
mov dword [ebx], eax
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x386c]
shl eax, 2
mov dword [esp], eax
call fcn.00606c50
mov edx, dword [ebp - 0x3870]
mov ebx, dword [ebp - 0x3864]
test edx, edx
mov dword [ebx + 4], eax
jle 0x50ae95
lea ecx, [ebp - 0x3519]
xor edx, edx
cmp byte [ecx + edx], 0
je 0x50ae8a
movzx ebx, byte [ebp + edx - 0x3419]
add eax, 4
mov byte [eax - 4], bl
movzx ebx, byte [ebp + edx - 0x3819]
mov byte [eax - 3], bl
movzx ebx, byte [ebp + edx - 0x3719]
mov byte [eax - 2], bl
movzx ebx, byte [ebp + edx - 0x3619]
mov byte [eax - 1], bl
add edx, 1
cmp dword [ebp - 0x3870], edx
jne 0x50ae55
mov edi, dword [ebp - 0x3868]
mov edx, dword [ebp - 0x3880]
mov eax, edi
sub eax, 1
cmp edi, dword [ebp - 0x3878]
jae 0x50aec3
movzx ecx, byte [edx]
sub edx, 1
movzx ecx, byte [ebp + ecx - 0x3419]
mov byte [edx + 1], cl
cmp eax, edx
jne 0x50aeae
mov eax, dword [ebp - 0x3884]
test eax, eax
je 0x50b188
mov eax, dword [ebp - 0x3874]
mov ecx, dword [ebp - 0x387c]
mov edi, dword [ebp - 0x3868]
add eax, 1
mov dword [ebp - 0x3880], eax
mov eax, dword [ebp - 0x3864]
mov dword [ebp - 0x3870], edi
lea esi, [eax + 8]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3878], eax
mov eax, dword [ebp - 0x3880]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call fcn.00606c50
mov esi, dword [ebp - 0x386c]
mov edi, dword [ebp - 0x3874]
mov dword [esi], eax
mov dword [esp + 8], edi
mov ebx, dword [ebp - 0x3870]
mov dword [esp + 4], ebx
mov dword [ebp - 0x3884], eax
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebp - 0x386c], 4
mov edi, dword [ebp - 0x3874]
mov esi, dword [ebp - 0x386c]
add dword [ebp - 0x3870], edi
cmp esi, dword [ebp - 0x3878]
mov eax, dword [ebp - 0x3884]
mov byte [eax + edi], 0
jne 0x50af0a
mov eax, dword [ebp - 0x3888]
mov edi, dword [ebp - 0x3864]
mov ebx, dword [ebp - 0x387c]
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], 1
mov dword [eax + 0x14], ebx
mov eax, dword [ebp - 0x3868]
mov dword [esp], eax
call fcn.00606c30
mov eax, dword [ebp - 0x3860]
mov dword [esp], eax
mov dword [ebp - 0x3858], 1
call sub.msvcrt.dll_fclose
jmp 0x509d1d
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x3880], 1
jmp 0x50a956
mov esi, 1
mov dword [ebp - 0x3878], 3
jmp 0x50a8b6
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3878], eax
mov dword [ebp - 0x3864], edi
mov dword [ebp - 0x3880], 3
jmp 0x50a956
mov byte [ebp - 0x3897], al
jmp 0x50a46f
mov edi, dword [ebp - 0x3878]
test edi, edi
jne 0x50a880
mov eax, dword [ebp - 0x3878]
mov dword [ebp - 0x3880], eax
mov eax, dword [ebp - 0x3884]
add esi, 8
cmp eax, esi
jg 0x50b0f0
cmp eax, 4
jg 0x50a8a7
mov esi, dword [ebp - 0x38a0]
cmp edx, ebx
mov edi, esi
jbe 0x50b1bf
mov eax, dword [ebp - 0x3890]
sub edx, 1
mov esi, dword [ebp - 0x3890]
mov ecx, dword [ebp - 0x3868]
mov dword [ebp - 0x387c], eax
movzx eax, byte [edx]
cmp edi, esi
mov byte [ecx], al
jbe 0x50a73d
mov dword [ebp - 0x3878], 1
xor esi, esi
jmp 0x50a62d
mov edi, dword [ebp - 0x3874]
mov eax, edi
imul eax, esi
add eax, dword [ebp - 0x3868]
add edi, eax
cmp edx, ebx
jbe 0x50b160
lea ecx, [eax + 1]
sub edx, 1
mov dword [ebp - 0x3878], ecx
movzx ecx, byte [edx]
cmp edi, dword [ebp - 0x3878]
mov byte [eax], cl
jbe 0x50b090
cmp edx, ebx
jbe 0x50b177
lea ecx, [eax + 2]
sub edx, 1
mov dword [ebp - 0x387c], ecx
movzx ecx, byte [edx]
cmp edi, dword [ebp - 0x387c]
mov byte [eax + 1], cl
jbe 0x50b090
mov eax, dword [ebp - 0x3880]
mov dword [ebp - 0x3878], eax
jmp 0x50a62d
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3878], eax
mov dword [ebp - 0x3864], edi
jmp 0x50a956
mov dword [ebp - 0x386c], esi
mov dword [ebp - 0x3864], edi
jmp 0x50a956
mov eax, dword [ebp - 0x3888]
mov ebx, dword [ebp - 0x3864]
mov esi, dword [ebp - 0x387c]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], 1
mov dword [eax + 0x14], esi
jmp 0x50af96
xor esi, esi
mov dword [ebp - 0x386c], ecx
mov dword [ebp - 0x3864], ebx
jmp 0x50a5af
mov eax, dword [ebp - 0x3868]
mov dword [ebp - 0x3864], esi
mov dword [ebp - 0x386c], 0
mov dword [ebp - 0x3880], 1
mov dword [ebp - 0x3878], eax
jmp 0x50a956