Function at 0x424bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590470
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1070
call fcn.00569910
mov eax, dword [0x6017f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1078], ecx
mov esi, dword [ebp + 0x18]
xor al, al
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x105c], edx
mov dword [ebp - 0x1068], edi
mov dword [ebp - 0x107c], esi
mov dword [ebp - 0x1080], 0
test esi, esi
je 0x424c66
cmp byte [ebp + 0x14], al
je 0x424c66
xor al, al
jmp 0x425004
test edx, edx
je 0x425004
test edi, edi
je 0x425004
test ecx, ecx
je 0x425004
lea eax, [ecx + 0x7fe]
xor esi, esi
lea edx, [ebp - 0x1054]
cmp edx, eax
ja 0x424c97
lea eax, [ebp - 0x58]
cmp eax, ecx
jae 0x424cd1
lea edx, [ebp - 0x1054]
lea eax, [edi + 0x7fe]
cmp edx, eax
mov edx, dword [ebp - 0x105c]
ja 0x424cb4
lea eax, [ebp - 0x58]
cmp eax, edi
jae 0x424cd1
lea edi, [ebp - 0x1054]
lea eax, [edx + 0x7fe]
cmp edi, eax
mov edi, dword [ebp - 0x1068]
ja 0x424d25
lea eax, [ebp - 0x58]
cmp eax, edx
jb 0x424d25
mov eax, dword [ebp - 0x105c]
mov edx, edi
sub eax, edi
sub ecx, edi
mov dword [ebp - 0x1074], eax
mov edi, ecx
mov dword [ebp - 0x1070], ecx
nop dword [eax + eax]
movzx ecx, word [edx + eax]
lea edx, [edx + 2]
movzx eax, word [edx - 2]
shl ecx, 0xa
or ecx, eax
movzx eax, word [edx + edi - 2]
shl ecx, 0xa
or ecx, eax
mov eax, dword [ebp - 0x1074]
mov dword [ebp + esi*4 - 0x1054], ecx
inc esi
cmp esi, 0x400
jb 0x424cf0
jmp 0x424def
mov eax, 0xa
movd xmm3, eax
lea eax, [edi + 8]
mov dword [ebp - 0x1064], eax
mov eax, edx
sub eax, edi
mov edx, ecx
sub edx, edi
mov dword [ebp - 0x1074], eax
mov edi, dword [ebp - 0x105c]
sub edi, ecx
mov dword [ebp - 0x1070], edx
mov dword [ebp - 0x105c], edi
nop dword [eax]
movq xmm2, qword [edi + ecx]
lea ecx, [ecx + 0x10]
mov edi, dword [ebp - 0x1064]
xorps xmm0, xmm0
punpcklwd xmm2, xmm0
pslld xmm2, xmm3
movq xmm1, qword [edi - 8]
punpcklwd xmm1, xmm0
por xmm2, xmm1
movq xmm1, qword [ecx - 0x10]
pslld xmm2, xmm3
punpcklwd xmm1, xmm0
por xmm2, xmm1
movq xmm1, qword [edi]
movups xmmword [ebp + esi*4 - 0x1054], xmm2
movq xmm2, qword [eax + edi]
punpcklwd xmm2, xmm0
pslld xmm2, xmm3
punpcklwd xmm1, xmm0
por xmm2, xmm1
movq xmm1, qword [edx + edi]
pslld xmm2, xmm3
punpcklwd xmm1, xmm0
add edi, 0x10
por xmm2, xmm1
mov dword [ebp - 0x1064], edi
mov edi, dword [ebp - 0x105c]
movups xmmword [ebp + esi*4 - 0x1044], xmm2
add esi, 8
cmp esi, 0x400
jb 0x424d60
cmp dword [ebp - 0x107c], 0
jne 0x424e38
mov esi, dword [ebp - 0x1078]
lea eax, [ebp - 0x1054]
push eax
push dword [esi + 4]
call fcn.00419320
add esp, 8
test al, al
je 0x424c5f
cmp byte [ebp + 0x14], 0
je 0x424e31
push dword [esi + 4]
call fcn.00418a50
add esp, 4
test al, al
je 0x424c5f
mov al, 1
jmp 0x425004
push 0x10040
mov dword [ebp - 4], 0
call fcn.0057ac9d
mov esi, eax
add esp, 4
mov dword [ebp - 0x105c], esi
test esi, esi
je 0x425022
push 0x10040
push 0
push esi
call fcn.0056b820
lea eax, [ebp - 0x54]
push str.R______G______B___BLACKMAGIC_GAMMA_TABLE_r_n
push eax
call fcn.00425070
lea edx, [ebp - 0x54]
add esp, 0x14
mov ecx, edx
mov dword [ebp - 0x1078], ecx
mov al, byte [edx]
inc edx
test al, al
jne 0x424e85
sub edx, ecx
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x424e91
mov esi, dword [ebp - 0x1078]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x1064], 0x400
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1068]
nop dword [eax]
mov eax, dword [ebp - 0x1070]
sub esp, 0x18
movzx eax, word [eax + ecx]
movd xmm0, eax
movzx eax, word [ecx]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x1074]
cvtdq2pd xmm0, xmm0
movzx eax, word [eax + ecx]
movsd qword [esp + 8], xmm0
movd xmm0, eax
lea eax, [ebp - 0x54]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push str._.2f__.2f__.2f_r_n
push eax
call fcn.00425070
lea edx, [ebp - 0x54]
add esp, 0x20
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x424f20
mov edi, dword [ebp - 0x105c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x424f30
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1068]
add ecx, 2
sub dword [ebp - 0x1064], 1
mov dword [ebp - 0x1068], ecx
jne 0x424ec0
mov edi, dword [ebp - 0x105c]
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x424f70
push 0x5a70ec
push dword [ebp - 0x107c]
sub esi, ecx
call fcn.0057b37c
add esp, 8
mov dword [ebp - 0x1080], eax
test eax, eax
je 0x42503a
push eax
push esi
push 1
push edi
call fcn.0057b693
add esp, 0x10
cmp eax, esi
jb 0x425052
jmp 0x424fd7
mov byte [ebp - 0x1055], 1
test edi, edi
je 0x424feb
push edi
call fcn.00572942
add esp, 4
mov eax, dword [ebp - 0x1080]
test eax, eax
je 0x424ffe
push eax
call fcn.0057b409
add esp, 4
mov al, byte [ebp - 0x1055]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056918e
mov esp, ebp
pop ebp
ret 0x14
push 0x5eb188
lea eax, [ebp - 0x105d]
mov byte [ebp - 0x105d], 0
push eax
call fcn.0056a907
push 0x5eb188
lea eax, [ebp - 0x105e]
mov byte [ebp - 0x105e], 0
push eax
call fcn.0056a907
push 0x5eb188
lea eax, [ebp - 0x105f]
mov byte [ebp - 0x105f], 0
push eax
call fcn.0056a907
int3