Function at 0x47b000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54aed9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c8
mov eax, dword [0x5abcc4]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3b4], ecx
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x348]
call fcn.004096e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x348]
call fcn.00408f80
movzx ecx, al
test ecx, ecx
je 0x47b0ab
push str.No_Name_Given
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov dword [ebp - 0x354], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x354]
jmp 0x47b9a1
push 0x56edc0
mov edx, dword [ebp + 8]
push edx
call fcn.00527b78
add esp, 8
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x47b147
lea eax, [ebp - 0x348]
push eax
push str.Cant_open_GIF_:_n
lea ecx, [ebp - 0x358]
push ecx
call fcn.0043ceb0
add esp, 0xc
mov dword [ebp - 0x3b8], eax
mov edx, dword [ebp - 0x3b8]
mov dword [ebp - 0x3bc], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3bc]
push eax
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409760
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x358]
call fcn.00408fa0
mov dword [ebp - 0x35c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x35c]
jmp 0x47b9a1
mov ecx, dword [ebp - 0x34c]
push ecx
push 1
push 6
lea edx, [ebp - 0x33c]
push edx
call fcn.0052a064
add esp, 0x10
test eax, eax
jne 0x47b1f4
lea eax, [ebp - 0x348]
push eax
push str.Error_reading_GIF_Magic__n
lea ecx, [ebp - 0x360]
push ecx
call fcn.0043ceb0
add esp, 0xc
mov dword [ebp - 0x3c0], eax
mov edx, dword [ebp - 0x3c0]
mov dword [ebp - 0x3c4], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c4]
push eax
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409760
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x360]
call fcn.00408fa0
mov ecx, dword [ebp - 0x34c]
push ecx
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x364], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x364]
jmp 0x47b9a1
push 3
push 0x56edf4
lea edx, [ebp - 0x33c]
push edx
call fcn.00529d04
add esp, 0xc
test eax, eax
je 0x47b2dd
push str._is_not_a_valid_.GIF_file
lea eax, [ebp - 0x348]
push eax
push str.Error_
lea ecx, [ebp - 0x368]
push ecx
call fcn.0043ceb0
add esp, 0xc
mov dword [ebp - 0x3c8], eax
mov edx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3cc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3cc]
push eax
lea ecx, [ebp - 0x36c]
push ecx
call fcn.00408ed0
add esp, 0xc
mov dword [ebp - 0x3d0], eax
mov edx, dword [ebp - 0x3d0]
mov dword [ebp - 0x3d4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3d4]
push eax
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409760
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x36c]
call fcn.00408fa0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x368]
call fcn.00408fa0
mov ecx, dword [ebp - 0x34c]
push ecx
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x370], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x370]
jmp 0x47b9a1
push 3
lea edx, [ebp - 0x339]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00529be0
add esp, 0xc
mov byte [ebp - 0x21], 0
push 0x56ee1c
lea ecx, [ebp - 0x24]
push ecx
call fcn.00529b50
add esp, 8
test eax, eax
je 0x47b369
push 0x56ee20
lea edx, [ebp - 0x24]
push edx
call fcn.00529b50
add esp, 8
test eax, eax
je 0x47b369
push str.Error__Bad_GIF_Version_number
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x374], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x374]
jmp 0x47b9a1
mov ecx, dword [ebp - 0x34c]
push ecx
push 1
push 7
lea edx, [ebp - 0x33c]
push edx
call fcn.0052a064
add esp, 0x10
test eax, eax
jne 0x47b3d0
push str.Error__failed_to_GIF_read_screen_descriptor._nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x378], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x378]
jmp 0x47b9a1
movzx ecx, byte [ebp - 0x33b]
shl ecx, 8
movzx edx, byte [ebp - 0x33c]
or ecx, edx
mov dword [0x5ae090], ecx
movzx eax, byte [ebp - 0x339]
shl eax, 8
movzx ecx, byte [ebp - 0x33a]
or eax, ecx
mov dword [0x5ae094], eax
movzx ecx, byte [ebp - 0x338]
and ecx, 7
mov edx, 2
shl edx, cl
mov dword [0x5ae398], edx
movzx eax, byte [ebp - 0x338]
and eax, 0x70
sar eax, 3
add eax, 1
mov dword [0x5ae39c], eax
movzx ecx, byte [ebp - 0x337]
mov dword [0x5ae3a0], ecx
movzx edx, byte [ebp - 0x336]
mov dword [0x5ae3a4], edx
movzx eax, byte [ebp - 0x338]
and eax, 0x80
je 0x47b4c0
push 0x5ae098
mov ecx, dword [0x5ae398]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
mov ecx, dword [ebp - 0x3b4]
call fcn.0047b9c0
test eax, eax
jne 0x47b4c0
push str.Error_reading_GIF_colormap
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x37c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x37c]
jmp 0x47b9a1
cmp dword [0x5ae3a4], 0
je 0x47b4e5
cmp dword [0x5ae3a4], 0x31
je 0x47b4e5
push str.Non_square_pixels_in_GIF_image._nIgnoring_that_fact...
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov ecx, dword [ebp - 0x34c]
push ecx
push 1
push 1
lea edx, [ebp - 0x341]
push edx
call fcn.0052a064
add esp, 0x10
test eax, eax
jne 0x47b54c
push str.Unexpected_EOF_in_GIF._nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x380], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x380]
jmp 0x47b9a1
movzx edx, byte [ebp - 0x341]
cmp edx, 0x21
jne 0x47b5e2
mov eax, dword [ebp - 0x34c]
push eax
push 1
push 1
lea ecx, [ebp - 0x341]
push ecx
call fcn.0052a064
add esp, 0x10
test eax, eax
jne 0x47b5c3
push str.Error_on_extension_read._nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov edx, dword [ebp - 0x34c]
push edx
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x384], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x384]
jmp 0x47b9a1
movzx eax, byte [ebp - 0x341]
push eax
mov ecx, dword [ebp - 0x34c]
push ecx
mov ecx, dword [ebp - 0x3b4]
call fcn.0047ba40
jmp 0x47b4e5
movzx edx, byte [ebp - 0x341]
cmp edx, 0x2c
je 0x47b5f3
jmp 0x47b4e5
mov eax, dword [ebp - 0x34c]
push eax
push 1
push 9
lea ecx, [ebp - 0x33c]
push ecx
call fcn.0052a064
add esp, 0x10
test eax, eax
jne 0x47b65a
push str.Error_on_dimension_read_nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov edx, dword [ebp - 0x34c]
push edx
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x388], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x388]
jmp 0x47b9a1
movzx eax, byte [ebp - 0x334]
and eax, 0x80
xor ecx, ecx
cmp eax, 0x80
setne cl
mov dword [ebp - 0x20], ecx
movzx ecx, byte [ebp - 0x334]
and ecx, 7
add ecx, 1
mov edx, 1
shl edx, cl
mov dword [ebp - 0x18], edx
movzx edx, byte [ebp - 0x337]
shl edx, 8
movzx eax, byte [ebp - 0x338]
or edx, eax
mov dword [ebp - 0x10], edx
movzx ecx, byte [ebp - 0x335]
shl ecx, 8
movzx edx, byte [ebp - 0x336]
or ecx, edx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x10], 0
jl 0x47b6c2
cmp dword [ebp - 0x14], 0
jge 0x47b70b
push str.Negative_image_dimensions__nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x38c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x38c]
jmp 0x47b9a1
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x14]
mov dword [ebp - 0x350], ecx
mov edx, dword [ebp - 0x350]
imul edx, edx, 3
mov dword [ebp - 0x350], edx
mov eax, dword [ebp - 0x350]
push eax
call fcn.004f6b46
add esp, 4
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x390]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x47b794
push str.Out_of_Memory_in_GIFRead
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov edx, dword [ebp - 0x34c]
push edx
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x394], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x394]
jmp 0x47b9a1
cmp dword [ebp - 0x20], 0
jne 0x47b8c2
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
mov ecx, dword [ebp - 0x3b4]
call fcn.0047b9c0
test eax, eax
jne 0x47b820
push str.Error_reading_GIF_colormap_nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x398], eax
mov ecx, dword [ebp - 0x398]
push ecx
call fcn.004f6b3b
add esp, 4
mov edx, dword [ebp - 0x34c]
push edx
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x39c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x39c]
jmp 0x47b9a1
movzx eax, byte [ebp - 0x334]
and eax, 0x40
xor ecx, ecx
cmp eax, 0x40
sete cl
push ecx
lea edx, [ebp - 0x32c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x34c]
push eax
mov ecx, dword [ebp - 0x3b4]
call fcn.0047c2d0
test eax, eax
jne 0x47b8bd
push str.Error_reading_GIF_file_nLocalColorMap_nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3a0], ecx
mov edx, dword [ebp - 0x3a0]
push edx
call fcn.004f6b3b
add esp, 4
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x3a4]
jmp 0x47b9a1
jmp 0x47b95a
movzx ecx, byte [ebp - 0x334]
and ecx, 0x40
xor edx, edx
cmp ecx, 0x40
sete dl
push edx
push 0x5ae098
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x34c]
push eax
mov ecx, dword [ebp - 0x3b4]
call fcn.0047c2d0
test eax, eax
jne 0x47b95a
push str.Error_reading_GIF_file_nGIFScreen_Colormap_nGiving_up
mov ecx, dword [ebp - 0x3b4]
add ecx, 0xc
call fcn.00409780
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3a8], ecx
mov edx, dword [ebp - 0x3a8]
push edx
call fcn.004f6b3b
add esp, 4
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00527c06
add esp, 4
mov dword [ebp - 0x3ac], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x3ac]
jmp 0x47b9a1
jmp 0x47b961
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x34c]
push edx
call fcn.00527c06
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.00408fa0
mov eax, dword [ebp - 0x3b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.005255a0
mov esp, ebp
pop ebp
ret 0xc