Function at 0x413c38
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4dc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x1a8]
mov dword [esp + 0x18], eax
mov ecx, 0x328
xor eax, eax
mov edi, dword [esp + 0x18]
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0x1b8], ebx
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
sub edx, eax
mov dword [esp + 0x1c0], edx
mov edx, dword [ecx + 0x1c]
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x1c4], ecx
cmp edx, eax
jge 0x413c97
mov edx, eax
inc edx
cmp ebx, edx
jle 0x4143c8
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x1c8], ecx
mov eax, dword [0x68bb7c]
mov eax, dword [eax + 0x424]
mov edx, str.GIF89a
test ecx, ecx
je 0x4143de
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov edx, dword [esp + 0x24]
mov dword [esp], edx
call eax
lea edi, [esp + 0x1d0]
lea edx, [esp + 0x4d0]
mov eax, edi
mov byte [eax], 0xff
mov byte [eax + 1], 0xff
mov byte [eax + 2], 0xff
add eax, 3
cmp eax, edx
jne 0x413ce8
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax]
lea eax, [edx + ecx]
mov dword [esp + 0x1b4], eax
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1bc], ebx
mov ebx, dword [esp + 0x1c8]
test ebx, ebx
je 0x4143b3
mov dword [esp + 0x1cc], 0
mov byte [esp + 0x1d0], 0xd9
mov byte [esp + 0x1d1], 0xd9
mov byte [esp + 0x1d2], 0xd9
xor ebp, ebp
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x413e44
add edx, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], edi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x413e1a
xor edi, edi
lea esi, [esi]
mov eax, dword [esp + 0x1c8]
test eax, eax
je 0x413dad
cmp byte [esi + eax], 0
je 0x413e0c
mov cl, byte [esi]
mov edx, dword [esp + 0x1c0]
mov bl, byte [esi + edx]
mov edx, dword [esp + 0x1c4]
mov dl, byte [esi + edx]
mov byte [esp + 0x1c], dl
xor edx, edx
test eax, eax
setne dl
cmp edx, ebp
jg 0x414350
lea eax, [esp + edx*2 + 0x1d0]
add eax, edx
mov byte [esp + 0x46], bl
jmp 0x413df4
inc edx
add eax, 3
cmp edx, ebp
jg 0x41434c
cmp cl, byte [eax]
jne 0x413de8
mov bl, byte [esp + 0x46]
cmp bl, byte [eax + 1]
jne 0x413de8
mov bl, byte [esp + 0x1c]
cmp bl, byte [eax + 2]
jne 0x413de8
nop
add esi, dword [esp + 0x1b8]
inc edi
cmp edi, dword [esp + 0x20]
jne 0x413d9c
inc dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x30], ebx
jne 0x413d87
mov edi, dword [esp + 0x40]
cmp ebp, 0xff
jg 0x4146b8
dec ebp
jle 0x4146a8
mov dl, byte [esp + 0x20]
mov byte [esp + 0x3c], dl
mov byte [esp + 0x57], dl
mov dword [esp + 8], 1
lea ebp, [esp + 0x57]
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov eax, dword [esp + 0x20]
sar ax, 8
mov byte [esp + 0x40], al
mov byte [esp + 0x57], al
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov cl, byte [esp + 0x34]
mov byte [esp + 0x46], cl
mov byte [esp + 0x57], cl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov eax, dword [esp + 0x34]
sar ax, 8
mov byte [esp + 0x47], al
mov byte [esp + 0x57], al
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov eax, dword [esp + 0x1cc]
test eax, eax
je 0x4146ea
xor ecx, ecx
inc ecx
mov edx, eax
sar edx, cl
test edx, edx
jne 0x413f10
mov al, cl
shl eax, 4
lea eax, [eax + ecx + 0x6f]
mov ebx, 1
shl ebx, cl
mov byte [esp + 0x30], cl
inc ecx
mov dword [esp + 0x20], ecx
lea edx, [ebx + 1]
mov dword [esp + 0x34], edx
lea edx, [ebx + 2]
mov dword [esp + 0x38], edx
lea edx, [ebx - 1]
mov dword [esp + 0x2c], edx
mov esi, 0xffd
sub esi, ebx
mov byte [esp + 0x57], al
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dword [esp + 0x1cc], ebx
mov byte [esp + 0x57], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov eax, dword [esp + 0x1cc]
test eax, eax
jle 0x414053
xor edx, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], esi
mov esi, edi
mov edi, edx
mov ebx, dword [esp + 0x24]
lea esi, [esi]
mov cl, byte [esi]
mov byte [esp + 0x57], cl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov al, byte [esi + 1]
mov byte [esp + 0x57], al
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dl, byte [esi + 2]
mov byte [esp + 0x57], dl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
inc edi
add esi, 3
cmp edi, dword [esp + 0x1cc]
jl 0x413fdc
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c8]
test eax, eax
jne 0x41465e
mov byte [esp + 0x57], 0x2c
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov byte [esp + 0x57], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov byte [esp + 0x57], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov byte [esp + 0x57], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov byte [esp + 0x57], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dl, byte [esp + 0x3c]
mov byte [esp + 0x57], dl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dl, byte [esp + 0x40]
mov byte [esp + 0x57], dl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dl, byte [esp + 0x46]
mov byte [esp + 0x57], dl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dl, byte [esp + 0x47]
mov byte [esp + 0x57], dl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov byte [esp + 0x57], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov cl, byte [esp + 0x30]
mov byte [esp + 0x57], cl
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1a8], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x1ac], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x30], eax
mov ecx, 0x150
xor eax, eax
mov edi, dword [esp + 0x30]
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x24]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x90], ebx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
cmp dword [esp + 0x20], 3
jg 0x4143e8
mov eax, 9
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x6c], 1
mov edx, ebx
lea eax, [esp + 0x58]
call fcn.00413a90
mov dword [esp + 0x60], 0
nop
lea ecx, [esp + 0x1a8]
mov dword [esp], ecx
call fcn.004125dc
mov esi, eax
mov ebx, dword [esp + 0x60]
test ebx, ebx
jle 0x414328
mov edi, dword [esp + 0x58]
cmp eax, edi
je 0x414328
cmp ebx, 1
je 0x414501
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x414442
mov ecx, dword [esp + 0x68]
cmp ecx, 1
jle 0x4142f5
cmp edi, dword [esp + 0x64]
je 0x414519
mov edx, dword [esp + 0x8c]
mov eax, ebx
call fcn.00412700
cmp ebx, eax
jg 0x4143f9
mov edx, edi
jmp 0x414314
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x58]
call fcn.00413ae8
dec ebx
jne 0x414310
mov dword [esp + 0x60], 0
cmp esi, 0xffffffff
je 0x414452
cmp esi, dword [esp + 0x58]
je 0x4143f0
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], 1
jmp 0x4142ac
mov bl, byte [esp + 0x46]
inc ebp
mov dword [esp + 0x1cc], ebp
cmp ebp, 0xff
jg 0x4146b8
lea eax, [ebp + ebp*2]
mov byte [esp + eax + 0x1d0], cl
mov eax, dword [esp + 0x1cc]
lea eax, [eax + eax*2]
mov byte [esp + eax + 0x1d1], bl
mov eax, dword [esp + 0x1cc]
lea eax, [eax + eax*2]
mov dl, byte [esp + 0x1c]
mov byte [esp + eax + 0x1d2], dl
mov ebp, dword [esp + 0x1cc]
add esi, dword [esp + 0x1b8]
inc edi
cmp edi, dword [esp + 0x20]
jne 0x413d9c
jmp 0x413e1a
mov dword [esp + 0x1cc], 0xffffffff
mov ebp, 0xffffffff
jmp 0x413d69
mov dword [esp + 0x1c8], 0
mov eax, dword [0x68bb7c]
mov eax, dword [eax + 0x424]
mov edx, str.GIF87a
jmp 0x413cc3
lea eax, [ebx - 2]
jmp 0x414266
inc dword [esp + 0x60]
jmp 0x4142ac
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x58]
call fcn.00413a90
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x84], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 1
mov edx, ebx
lea eax, [esp + 0x58]
call fcn.00413b58
jmp 0x414320
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x58]
call fcn.00413a90
mov eax, dword [esp + 0x1a4]
mov ebx, dword [esp + 0x9c]
test ebx, ebx
jle 0x4144a1
mov edx, dword [esp + 0x98]
mov byte [esp + eax + 0xa4], dl
inc eax
mov dword [esp + 0x1a4], eax
cmp eax, 0xfe
jle 0x4144a1
lea eax, [esp + 0x58]
call fcn.0041269c
mov eax, dword [esp + 0x1a4]
test eax, eax
jle 0x4144ae
lea eax, [esp + 0x58]
call fcn.0041269c
mov byte [esp + 0x57], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov byte [esp + 0x57], 0x3b
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
xor eax, eax
add esp, 0x4dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, edi
lea eax, [esp + 0x58]
call fcn.00413ae8
mov dword [esp + 0x60], 0
jmp 0x414328
mov eax, ebx
cdq
idiv ecx
mov dword [esp + 0x1c], edx
mov edi, eax
xor eax, eax
test edx, edx
setne al
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x20], edx
lea edx, [edi + eax]
add edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x20]
jle 0x414577
mov edi, dword [esp + 0x20]
sub edi, eax
mov eax, ecx
imul eax, edi
mov edx, ebx
sub edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
call fcn.00412700
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x14], ecx
call fcn.00412700
mov edx, dword [esp + 0x28]
add edx, edi
cmp eax, edx
mov ecx, dword [esp + 0x14]
jl 0x4143f9
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x84], ebx
test edi, edi
jg 0x4145b0
jmp 0x4145c5
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
add edx, ecx
sub edx, 2
lea eax, [esp + 0x58]
call fcn.00413ae8
dec edi
jne 0x4145ac
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4145f8
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x414720
cmp dword [esp + 0x1c], 1
je 0x414732
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x5c]
sub edx, 2
lea eax, [esp + 0x58]
call fcn.00413ae8
mov eax, dword [esp + 0x88]
mov dword [esp + 0x84], eax
cmp eax, dword [esp + 0x78]
jg 0x414320
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x58]
call fcn.00413a90
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x84], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 1
jmp 0x414320
mov byte [esp + 0x57], 0x21
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
mov dword [esp + 8], 7
mov dword [esp + 4], 0x5faaf1
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov eax, dword [0x68bb7c]
call dword [eax + 0x424]
jmp 0x414062
mov dword [esp + 0x1cc], 2
jmp 0x413e4b
mov dword [esp + 8], 0
mov dword [esp + 4], str.too_many_colors
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x120]
mov eax, 1
add esp, 0x4dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0xffc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 3
mov dword [esp + 0x34], 2
mov dword [esp + 0x20], 1
mov byte [esp + 0x30], 0
mov ebx, 1
mov al, 0x6f
jmp 0x413f4e
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
call fcn.00413b58
jmp 0x4145f8
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x58]
call fcn.00413ae8
jmp 0x4145f8