Function at 0x4a5bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xa8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
call fcn.00458dd0
add esp, 4
cmp word [edi + 0xac], 0
je 0x4a5bf9
mov ax, word [0x5d32c0]
movq xmm0, qword [str.Softimage]
mov word [ebp - 0x7c], ax
jmp 0x4a5c13
mov eax, dword [0x5db9fc]
movq xmm0, qword [str.Softimage_RLE]
mov dword [ebp - 0x7c], eax
mov ax, word [0x5dba00]
mov word [ebp - 0x78], ax
movzx ecx, word [edi + 0x28]
xor eax, eax
cmp cx, 0x20
movq qword [ebp - 0x84], xmm0
sete al
lea eax, [eax*8 + 0x18]
mov word [ebp - 0x9a], ax
mov eax, 1
mov word [ebp - 0x9c], ax
xor eax, eax
cmp cx, 0x20
sete al
add eax, 3
imul eax, dword [edi + 0x2c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa8]
push eax
push edi
call fcn.00457000
movzx esi, ax
add esp, 8
mov dword [ebp - 0xac], esi
test si, si
jne 0x4a5edb
push edi
push ebx
call fcn.004a5f20
add esp, 8
test ax, ax
jne 0x4a5ca8
push edi
call fcn.00454fa0
add esp, 4
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp word [edi + 0x28], 0x20
sete al
movzx eax, ax
push eax
mov dword [ebp - 0xb0], eax
movzx eax, word [edi + 0xac]
push eax
push ebx
call fcn.004a6050
add esp, 0xc
test ax, ax
je 0x4a5c89
cmp word [edi + 0xac], 0
je 0x4a5db4
xor eax, eax
cmp word [edi + 0x28], 0x18
mov dword [ebp - 0xac], eax
jle 0x4a5d67
cmp dword [edi + 0x30], eax
jle 0x4a5ed2
push 1
push eax
push edi
call fcn.00459620
push dword [ebp - 0xb0]
push dword [edi + 0x2c]
push dword [ebp - 0xa0]
push ebx
call fcn.004a6400
movzx esi, ax
add esp, 0x1c
test si, si
jne 0x4a5ed2
cmp word [ebp - 0xb0], si
je 0x4a5d50
push dword [edi + 0x2c]
mov eax, dword [ebp - 0xa0]
add eax, 3
push eax
push ebx
call fcn.004a60d0
movzx esi, ax
add esp, 0xc
test si, si
jne 0x4a5ed2
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp eax, dword [edi + 0x30]
jl 0x4a5cf8
jmp 0x4a5ed2
cmp dword [edi + 0x30], eax
jle 0x4a5ed2
push 1
push eax
push edi
call fcn.00459620
push dword [ebp - 0xb0]
push dword [edi + 0x2c]
push dword [ebp - 0xa0]
push ebx
call fcn.004a6400
movzx esi, ax
add esp, 0x1c
test si, si
jne 0x4a5ed2
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp eax, dword [edi + 0x30]
jl 0x4a5d70
jmp 0x4a5ed2
cmp word [edi + 0x28], 0x18
jle 0x4a5e98
xor eax, eax
mov dword [ebp - 0xb0], eax
cmp dword [edi + 0x30], eax
jle 0x4a5ed2
push 1
push eax
push edi
call fcn.00459620
mov eax, dword [ebp - 0x90]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x4a5e34
jmp 0x4a5df0
push dword [ebx]
mov eax, dword [ebp - 0xa0]
push 1
add eax, esi
push 3
push eax
call fcn.0059628c
add esp, 0x10
cmp eax, 1
jne 0x4a5e1b
mov eax, dword [ebp - 0x90]
add esi, 4
cmp esi, eax
jl 0x4a5df0
jmp 0x4a5e34
mov eax, dword [edi + 0x30]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xac], 6
xor esi, esi
test eax, eax
jle 0x4a5e6a
lea ebx, [ebx]
push dword [ebx]
mov eax, dword [ebp - 0xa0]
push 1
add eax, 3
add eax, esi
push 1
push eax
call fcn.0059628c
add esp, 0x10
cmp eax, 1
jne 0x4a5e88
add esi, 4
cmp esi, dword [ebp - 0x90]
jl 0x4a5e40
mov esi, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp eax, dword [edi + 0x30]
jl 0x4a5dd0
jmp 0x4a5ed2
mov eax, dword [edi + 0x30]
mov esi, 6
mov dword [ebp - 0xac], esi
jmp 0x4a5e76
xor esi, esi
cmp dword [edi + 0x30], esi
jle 0x4a5ecc
nop
push 1
push esi
push edi
call fcn.00459620
push dword [ebx]
push 1
push dword [ebp - 0x90]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x1c
cmp eax, 1
jne 0x4a5eef
inc esi
cmp esi, dword [edi + 0x30]
jl 0x4a5ea0
mov esi, dword [ebp - 0xac]
push edi
call fcn.00454fa0
add esp, 4
mov ecx, dword [ebp - 4]
mov ax, si
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov esi, 6
jmp 0x4a5ed2