Function at 0x4019e0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebp, dword [esp + 0x94]
test ebp, ebp
jne 0x401ac0
mov dword [esp + 0x10], 0x1b
mov eax, 0x1b
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 0x1b
mov edx, dword [esp + 0x8c]
xor edi, edi
mov word [0x79c092], di
test edx, edx
je 0x401ae8
mov eax, dword [esp + 0x80]
lea ebx, [esp + 0x44]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._read
mov edi, eax
cmp eax, 1
jne 0x401f8e
movzx eax, byte [esp + 0x37]
cmp eax, 0xff
je 0x401f31
mov eax, dword [esp + 0x80]
mov dword [esp + 8], 0x13
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._read
mov dword [esp + 0x2c], eax
cmp eax, 0x13
je 0x401f72
mov dword [esp], 2
mov ebp, 0xffffffff
call dword [0x4b307c]
mov dword [esp + 4], str.Error_reading_status_bytes_of_next_LUT._n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
add esp, 0x6c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x21
mov eax, 0x21
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 0x21
jmp 0x401a13
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
lea ebx, [esp + 0x44]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._read
cmp dword [esp + 0x2c], eax
jne 0x401a8d
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [0x79c068], eax
mov eax, 0xa
mov dword [0x79c06c], edx
lea edx, [esp + 0x4c]
movzx edx, word [edx]
lea ecx, [ebx + eax]
xor edi, edi
mov word [0x79c092], dx
movzx edx, byte [ecx]
test ebp, ebp
je 0x401e80
mov ecx, dword [esp + 0x88]
add eax, 1
mov byte [ecx], dl
lea ecx, [ebx + eax]
movzx edx, byte [ecx]
test edi, edi
je 0x401e70
movzx edx, word [ecx]
fld dword [esp + eax + 0x46]
add eax, 6
fstp qword [0x79c078]
fld dword [esp + eax + 0x44]
mov word [0x79c084], dx
lea edx, [ebx + eax + 4]
movzx ecx, byte [edx]
fstp dword [0x79c070]
test ebp, ebp
je 0x401c40
fld dword [esp + eax + 0x49]
mov eax, dword [esp + eax + 0x4d]
mov byte [0x79c090], cl
mov edx, dword [esp + 0x14]
mov dword [0x79c080], eax
mov eax, dword [esp + 0x10]
add eax, dword [0x79c0c8]
adc edx, dword [0x79c0cc]
fstp dword [0x79c08c]
mov dword [0x79c0c8], eax
mov dword [0x79c0cc], edx
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jne 0x401ec9
mov ecx, eax
mov ebx, edx
add ecx, 8
adc ebx, 0
cmp ecx, dword [0x79c0d8]
mov ecx, ebx
sbb ecx, dword [0x79c0dc]
jb 0x401eeb
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._lseek
mov ebp, dword [0x79c0c8]
mov ebx, dword [0x79c0cc]
mov edi, eax
sar edi, 0x1f
xor eax, ebp
mov edx, edi
xor edx, ebx
or edx, eax
jne 0x401fd2
call sym.update_status_strings__
xor ebp, ebp
add esp, 0x6c
pop ebx
mov eax, ebp
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx]
mov edx, dword [esp + 0x14]
mov byte [0x79c090], 0xff
lea edi, [esp + 0x37]
mov dword [esp + 0x18], 0
mov ebp, dword [esp + 0x84]
mov dword [0x79c080], eax
mov eax, dword [esp + 0x10]
add dword [0x79c0c8], eax
mov eax, dword [esp + 0x90]
adc dword [0x79c0cc], edx
mov esi, dword [esp + 0x90]
xor ebx, ebx
shl eax, 2
mov dword [esp + 0x20], eax
lea esi, [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call sym._read
cmp eax, 0xffffffff
je 0x401ea0
test esi, esi
jle 0x401d7b
cmp esi, 3
jle 0x401d00
mov eax, dword [ebp]
fld dword [esp + 0x37]
test eax, eax
js 0x401de0
fstp qword [ebx*8 + 0x598060]
mov eax, 1
fld dword [esp + eax*4 + 0x37]
mov edx, eax
lea ecx, [eax*4]
shl edx, 0xe
add edx, ebx
fstp qword [edx*8 + 0x598060]
lea edx, [eax + 1]
jmp 0x4aa9be
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], esi
lea ecx, [eax + 0x658060]
lea eax, [ebx*4 + 0x568060]
mov ebx, edx
mov dword [esp + 0x28], eax
mov esi, ecx
mov eax, dword [ebp]
fld dword [edi + ebx*4]
test eax, eax
js 0x401dc0
fst qword [esp + 8]
mov dword [esp + 4], str._.03f
mov dword [esp], esi
fstp dword [esp + 0x1c]
call sym.sprintf_char__char_const__..._
cmp byte [0x79c0b4], 0
je 0x401d64
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov eax, ebx
shl eax, 0x10
fmul st(0)
fstp dword [ecx + eax]
add ebx, 1
add esi, 0x6c000
cmp dword [esp + 0x10], ebx
jne 0x401d23
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
add ebx, 1
add dword [esp + 0x18], 0x1b
cmp ebx, 0x4000
jne 0x401c90
mov eax, esi
mov dword [esp + 0x90], esi
shl eax, 0x10
cdq
add eax, dword [0x79c0c8]
adc edx, dword [0x79c0cc]
mov dword [0x79c0c8], eax
mov dword [0x79c0cc], edx
jmp 0x401bc1
mov eax, dword [esp + 0x24]
or eax, ebx
jne 0x401d31
fldz
xor eax, eax
fcompi st(1)
seta al
mov dword [ebp], eax
jmp 0x401d31
test ebx, ebx
jne 0x401df0
fldz
xor eax, eax
fcompi st(1)
seta al
mov dword [ebp], eax
mov eax, dword [ebp]
fstp qword [ebx*8 + 0x598060]
fld dword [esp + 0x3b]
test eax, eax
js 0x401e18
fstp qword [ebx*8 + 0x5b8060]
mov eax, 2
jmp 0x401cdc
fstp qword [ebx*8 + 0x5b8060]
fld dword [esp + 0x3f]
fstp qword [ebx*8 + 0x5d8060]
fld dword [esp + 0x43]
fstp qword [ebx*8 + 0x5f8060]
cmp esi, 4
je 0x401d7b
fld dword [esp + 0x47]
fstp qword [ebx*8 + 0x618060]
cmp esi, 5
je 0x401d7b
fld dword [esp + 0x4b]
fstp qword [ebx*8 + 0x638060]
cmp esi, 6
jne sym.read_lut_int__int__unsigned_char__int__int__int___clone_.cold_
jmp 0x401d7b
fld qword [esp + eax + 0x45]
add eax, 9
jmp 0x401b63
mov esi, dword [esp + 0x84]
mov esi, dword [esi]
test esi, esi
mov esi, dword [esp + 0x88]
sete byte [esi]
jmp 0x401b51
mov ebp, eax
mov dword [esp], 2
call dword [0x4b307c]
mov dword [esp + 4], str.read_lut:_error_while_read_in_of_new_lutE_table._n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
add esp, 0x6c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x2c]
shl esi, 0x10
add eax, esi
cdq
add dword [0x79c0d0], eax
adc dword [0x79c0d4], edx
jmp 0x401c28
lea eax, [esp + 0x37]
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call sym._read
cmp eax, 8
je 0x401fb5
mov dword [0x79c0c0], 0
mov eax, dword [0x79c0c8]
mov dword [0x79c0c4], 0
jmp 0x401bee
mov eax, dword [esp + 0x80]
mov dword [esp + 8], 0xe
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._read
mov dword [esp + 0x2c], eax
cmp eax, 0xe
jne 0x401a8d
mov dword [esp + 0x10], 0xe
mov ecx, ebx
xor eax, eax
mov dword [esp + 0x14], 0
jmp 0x401b34
mov dword [esp + 0x10], 0x13
mov eax, 2
mov edx, ebx
mov dword [esp + 0x14], 0
jmp 0x401b25
mov dword [esp], 2
mov ebp, 0xffffffff
call dword [0x4b307c]
mov dword [esp + 4], str.Error_reading_lut_flag_byte_of_next_LUT._n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
jmp 0x401aaf
mov eax, dword [esp + 0x37]
mov edx, dword [esp + 0x3b]
mov dword [0x79c0c0], eax
mov eax, dword [0x79c0c8]
mov dword [0x79c0c4], edx
jmp 0x401bee
mov dword [esp], 2
call dword [0x4b307c]
mov dword [esp + 8], ebp
mov ebp, 0xffffffff
mov dword [esp + 0xc], ebx
mov dword [esp + 4], str.read_lut:_failed_to_set_lutfile_read_pointer_back_to__llu._n
mov dword [esp], eax
call sym.fprintf__iobuf__char_const__..._
jmp 0x401aaf
fld dword [esp + ecx + 0x3b]
mov eax, edx
shl eax, 0xe
add eax, ebx
fstp qword [eax*8 + 0x598060]
lea eax, [edx + 1]
cmp esi, eax
jle 0x401d7b
fld dword [esp + ecx + 0x3f]
shl eax, 0xe
add eax, ebx
fstp qword [eax*8 + 0x598060]
lea eax, [edx + 2]
cmp esi, eax
jle 0x401d7b
fld dword [esp + ecx + 0x43]
shl eax, 0xe
add eax, ebx
fstp qword [eax*8 + 0x598060]
lea eax, [edx + 3]
cmp esi, eax
jle 0x401d7b
fld dword [esp + ecx + 0x47]
shl eax, 0xe
add eax, ebx
fstp qword [eax*8 + 0x598060]
lea eax, [edx + 4]
cmp esi, eax
jle 0x401d7b
fld dword [esp + ecx + 0x4b]
shl eax, 0xe
add eax, ebx
fstp qword [eax*8 + 0x598060]
jmp 0x401d7b