Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x461a10]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 8
jg 0x401479
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 1
jge 0x401480
xor eax, eax
jmp 0x4016f9
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jae 0x4016cd
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042ca49
add esp, 0x10
cmp eax, 1
je 0x4014b1
jmp 0x4016cd
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
je 0x401505
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 4
je 0x4014d1
cmp dword [ebp - 0x2c], 8
je 0x4014e5
jmp 0x4014f9
fld dword [ebp - 0x10]
fmul qword [0x448208]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
fstp dword [eax + edx*4]
jmp 0x401500
fld qword [ebp - 0x10]
fmul qword [0x448208]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
fstp dword [edx + ecx*4]
jmp 0x401500
xor eax, eax
jmp 0x4016f9
jmp 0x4016bf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 3
ja case.default.0x401524
mov eax, dword [ebp - 0x30]
jmp dword [eax*4 + 0x401708]
movzx ecx, byte [ebp - 0x10]
mov dword [ebp - 0x34], ecx
fild dword [ebp - 0x34]
fsub qword [0x448200]
fmul qword [0x4481f8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
fstp dword [eax + edx*4]
jmp 0x4016bf
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x401594
mov dx, word [ebp - 0x10]
mov word [ebp - 0x14], dx
movsx eax, word [ebp - 0x14]
and eax, 0xff
shl eax, 8
movsx ecx, word [ebp - 0x14]
and ecx, 0xff00
sar ecx, 8
or eax, ecx
mov word [ebp - 0x14], ax
movsx edx, word [ebp - 0x14]
mov dword [ebp - 0x38], edx
fild dword [ebp - 0x38]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
fstp dword [ecx + eax*4]
jmp 0x4015a7
movsx edx, word [ebp - 0x10]
mov dword [ebp - 0x18], edx
fild dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
fstp dword [ecx + eax*4]
jmp 0x4016bf
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
jne 0x4015f8
movzx eax, byte [ebp - 0x10]
movzx ecx, byte [ebp - 0xf]
shl ecx, 8
or eax, ecx
movzx edx, byte [ebp - 0xe]
shl edx, 0x10
or eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
and eax, 0x800000
je 0x4015e4
mov ecx, dword [ebp - 0x1c]
or ecx, 0xff000000
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
fdiv qword [0x4481f8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
fstp dword [eax + edx*4]
jmp 0x40163a
movzx ecx, byte [ebp - 0x10]
shl ecx, 0x10
movzx edx, byte [ebp - 0xf]
shl edx, 8
or ecx, edx
movzx eax, byte [ebp - 0xe]
or ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
and ecx, 0x800000
je 0x401628
mov edx, dword [ebp - 0x20]
or edx, 0xff000000
mov dword [ebp - 0x20], edx
fild dword [ebp - 0x20]
fdiv qword [0x4481f8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
fstp dword [ecx + eax*4]
jmp 0x4016bf
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x4016a1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp - 0x24]
and edx, 0xff00
shl edx, 8
or ecx, edx
mov eax, dword [ebp - 0x24]
and eax, 0xff0000
sar eax, 8
or ecx, eax
mov edx, dword [ebp - 0x24]
and edx, 0xff000000
shr edx, 0x18
or ecx, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0
fild qword [ebp - 0x40]
fdiv qword [0x4481f0]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
fstp dword [ecx + eax*4]
jmp 0x4016b9
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
fild dword [ebp - 0x28]
fdiv qword [0x4481f0]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
fstp dword [ecx + eax*4]
jmp 0x4016bf
xor eax, eax
jmp 0x4016f9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401480
cmp dword [ebp + 0x14], 0
je 0x4016f6
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ecx + 4]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401720
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042d058
mov esp, ebp
pop ebp
ret