Function at 0x404610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 1
push 0x430024
mov eax, dword [ebp + 8]
push eax
call fcn.00418f0b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40463f
or eax, 0xffffffff
jmp 0x404953
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
cmp edx, dword [ebp + 0x1c]
jge 0x404659
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40463f
mov ecx, dword [ebp - 4]
push ecx
push 6
push 1
push str.GIF89a
call fcn.004195d6
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00404420
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00404420
add esp, 8
mov eax, dword [ebp - 8]
sub eax, 1
shl eax, 4
or eax, 0x80
mov ecx, dword [ebp - 8]
sub ecx, 1
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00418f20
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
push 7
call fcn.00418f20
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 0
call fcn.00418f20
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x4046e5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
imul ecx, dword [ebp + 0x1c], 3
cmp dword [ebp - 0xc], ecx
jge 0x404706
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
push ecx
call fcn.00418f20
add esp, 8
jmp 0x4046dc
mov edx, 1
mov ecx, dword [ebp - 8]
shl edx, cl
imul eax, edx, 3
cmp dword [ebp - 0xc], eax
jge 0x404731
mov ecx, dword [ebp - 4]
push ecx
push 0
call fcn.00418f20
add esp, 8
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x404706
mov eax, dword [ebp - 4]
push eax
push 0x21
call fcn.00418f20
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
push 0xf9
call fcn.00418f20
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 4
call fcn.00418f20
add esp, 8
cmp dword [ebp + 0x20], 0xffffffff
je 0x404774
mov eax, dword [ebp - 4]
push eax
push 1
call fcn.00418f20
add esp, 8
jmp 0x404782
mov ecx, dword [ebp - 4]
push ecx
push 0
call fcn.00418f20
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 0
call fcn.00418f20
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0
call fcn.00418f20
add esp, 8
cmp dword [ebp + 0x20], 0xffffffff
je 0x4047b6
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x20]
push edx
call fcn.00418f20
add esp, 8
jmp 0x4047c4
mov eax, dword [ebp - 4]
push eax
push 0
call fcn.00418f20
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
push 0
call fcn.00418f20
add esp, 8
mov edx, dword [ebp - 4]
push edx
push 0x2c
call fcn.00418f20
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0
call fcn.00404420
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
push 0
call fcn.00404420
add esp, 8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00404420
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00404420
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x40482b
mov dword [ebp - 0x18], 0x40
jmp 0x404832
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00418f20
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x4048da
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x14]
push eax
call fcn.0041916b
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40487f
mov ecx, dword [ebp - 4]
push ecx
call fcn.00418c8b
add esp, 4
or eax, 0xffffffff
jmp 0x404953
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00403f20
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00403820
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4048cc
mov edx, dword [ebp - 4]
push edx
call fcn.00418c8b
add esp, 4
or eax, 0xffffffff
jmp 0x404953
mov eax, dword [ebp - 0x10]
push eax
call fcn.00419133
add esp, 4
jmp 0x40490c
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403820
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40490c
mov eax, dword [ebp - 4]
push eax
call fcn.00418c8b
add esp, 4
or eax, 0xffffffff
jmp 0x404953
mov ecx, dword [ebp - 4]
push ecx
push 0x3b
call fcn.00418f20
add esp, 8
mov edx, dword [ebp - 4]
push edx
call fcn.00418d28
add esp, 4
test eax, eax
je 0x40493b
mov eax, dword [ebp - 4]
push eax
call fcn.00418c8b
add esp, 4
or eax, 0xffffffff
jmp 0x404953
mov ecx, dword [ebp - 4]
push ecx
call fcn.00418c8b
add esp, 4
cmp eax, 0xffffffff
jne 0x404951
or eax, 0xffffffff
jmp 0x404953
xor eax, eax
mov esp, ebp
pop ebp
ret