Function at 0x140125560
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x278]
sub rsp, 0x378
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rax, qword [rbp + 0x2e0]
mov r14, qword [rbp + 0x2e8]
mov r12, qword [rbp + 0x328]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x2f0]
mov r13, qword [rbp + 0x330]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x2f8]
mov rdi, qword [rbp + 0x338]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x300]
mov rbx, qword [rbp + 0x340]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x308]
mov r15, qword [rbp + 0x358]
mov rsi, qword [rbp + 0x418]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x318]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x320]
mov qword [rsp + 0x40], rcx
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x348]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x350]
mov r9, rcx
mov rcx, qword [rbp + 0x310]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x368]
mov qword [rbp - 0x78], rcx
mov rcx, qword [rbp + 0x3e8]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x10], rcx
mov ecx, dword [rbp + 0x410]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x380]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x388]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x390]
mov qword [rsp + 0x30], rdx
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x398]
mov dword [rsp + 0x38], ecx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x3a0]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x3a8]
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x3b0]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x3b8]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x3c0]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x3c8]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x3d0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x3d8]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x3e0]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x3f0]
mov qword [rbp], rax
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x408]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x420]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x430]
mov rcx, qword [r9]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x438]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x48], rax
call fcn.1401c1f88
mov r9, qword [rsp + 0x40]
lea rcx, [rbp + 0x60]
mov r9, qword [r9]
mov edx, 2
mov r8d, 0x100
call fcn.1401c1e14
test rax, rax
jne 0x14012579d
or eax, 0xffffffff
jmp 0x14012605a
lea rcx, [rbp + 0x60]
mov edx, 0x100
call fcn.140126110
movsx eax, word [rbp + 0x60]
mov rcx, qword [rbp - 0x38]
mov r10, qword [rsp + 0x68]
mov dword [r14], eax
movsx eax, word [rbp + 0x62]
mov dword [rcx], eax
movsx eax, word [rbp + 0x80]
mov rcx, qword [rsp + 0x50]
mov dword [r10], eax
movsx eax, word [rbp + 0x68]
xor r14d, r14d
mov r8d, 1
lea rdx, [0x140000000]
mov dword [rcx], eax
cmp eax, 0x14
jge 0x1401257f0
mov dword [rcx], r8d
jmp 0x1401257f9
cmp eax, 0x1e
jge 0x1401258a2
mov eax, dword [r10]
inc eax
cmp eax, 0xe
ja case.0x14012580f.3
cdqe
mov ecx, dword [rdx + rax*4 + 0x12608c]
add rcx, rdx
jmp rcx
mov dword [rdi], 0xa
jmp 0x14012587b
mov dword [rdi], 0x64
mov dword [rbx], 0x3e8
mov dword [r15], 0x64
mov dword [r12], 0xffffff9c
jmp 0x14012588c
mov dword [rdi], 0x64
mov dword [rbx], 0x3e8
mov dword [r15], r8d
jmp 0x140125888
mov dword [rdi], 0x64
mov dword [rbx], 0x64
mov dword [r15], r8d
mov dword [r12], 0xffffff9c
jmp 0x14012588c
mov dword [rdi], 0xa
mov dword [rbx], 0x3e8
mov dword [r15], 0xa
jmp 0x140125888
mov dword [rdi], 0x64
mov dword [rbx], 0x3e8
mov dword [r15], 0x64
mov dword [r12], r14d
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov dword [r13], r14d
mov dword [rcx], r14d
mov dword [rdx], r14d
jmp 0x1401258f0
movsx eax, word [rbp + 0xae]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov dword [rbx], eax
movsx eax, word [rbp + 0x15c]
mov dword [r12], eax
movsx eax, word [rbp + 0x15e]
mov dword [r13], eax
movsx eax, word [rbp + 0x1b0]
mov dword [rdi], eax
movsx eax, word [rbp + 0x1da]
mov dword [rcx], eax
movsx eax, word [rbp + 0x240]
mov dword [rdx], eax
movsx eax, word [rbp + 0x25e]
mov dword [r15], eax
movd xmm0, dword [rdi]
movd xmm1, dword [r12]
movsx eax, word [rbp + 0x64]
movsx r8d, word [rbp + 0x6a]
movsx r9d, word [rbp + 0x6c]
mov r11, qword [rbp + 0x28]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movd xmm2, eax
movd xmm4, r8d
movd xmm5, r9d
mov rax, qword [rbp - 0x18]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
divss xmm2, xmm0
subss xmm2, xmm1
movss dword [rax], xmm2
movd xmm0, dword [rdi]
movd xmm1, dword [r13]
movsx eax, word [rbp + 0x66]
mov rdi, qword [rbp - 0x78]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movd xmm3, eax
mov rax, qword [rsp + 0x78]
cvtdq2ps xmm3, xmm3
divss xmm3, xmm0
subss xmm3, xmm1
movaps xmm1, xmm4
movss dword [rax], xmm3
movd xmm0, dword [rbx]
movsx eax, word [rbp + 0x6e]
movd xmm2, eax
mov rax, qword [rbp - 8]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtdq2ps xmm2, xmm2
movss dword [r11], xmm1
movd xmm0, dword [rbx]
movaps xmm1, xmm5
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [rdi], xmm1
movd xmm0, dword [r15]
movd xmm1, dword [rcx]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
divss xmm2, xmm0
subss xmm2, xmm1
movss dword [rax], xmm2
movsx eax, word [rbp + 0x70]
movd xmm0, dword [r15]
movd xmm1, dword [rdx]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movd xmm3, eax
mov rax, qword [rbp - 0x68]
cvtdq2ps xmm3, xmm3
divss xmm3, xmm0
subss xmm3, xmm1
movss dword [rax], xmm3
mov eax, dword [r10]
inc eax
cmp eax, 0xe
ja case.0x140125a03.3
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x1260c8]
add rcx, rdx
jmp rcx
movd xmm0, dword [rbx]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm4
movss dword [r11], xmm0
movd xmm1, dword [rbx]
cvtdq2ps xmm1, xmm1
divss xmm1, xmm5
movss dword [rdi], xmm1
jmp case.0x140125a03.0
movd xmm0, dword [rbx]
movd xmm1, r8d
movd xmm2, r9d
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm2, xmm2
divsd xmm1, xmm0
mulsd xmm1, qword [0x1401f6ca8]
mulsd xmm1, qword [0x1402354f8]
divsd xmm1, qword [0x1402354f0]
cvtpd2ps xmm0, xmm1
movss dword [r11], xmm0
movd xmm1, dword [rbx]
cvtdq2pd xmm1, xmm1
divsd xmm2, xmm1
mulsd xmm2, qword [0x1401f6ca8]
mulsd xmm2, qword [0x1402354f0]
cvtpd2ps xmm0, xmm2
movss dword [rdi], xmm0
jmp case.0x140125a03.0
call fcn.1401be514
lea rdx, str._n__Unrecognized_SIR_option_in_read_sir_header3__n
lea rcx, [rax + 0x60]
call fcn.1401be844
mov rcx, qword [rbp - 0x58]
movsx eax, word [rbp + 0x72]
mov r8, qword [rbp + 8]
movsd xmm1, qword [0x140235500]
mov rdx, qword [rbp + 0x48]
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov dword [rdx], eax
movsx eax, word [rbp + 0x74]
mov r9d, 1
test eax, eax
mov r10d, 2
cmove eax, r9d
mov dword [rcx], eax
movsx eax, word [rbp + 0x76]
mov dword [r8], eax
mov r8, qword [rbp - 0x48]
movsx eax, word [rbp + 0x78]
mov dword [r8], eax
mov r8, qword [rbp + 0x38]
movsx eax, word [rbp + 0x7a]
mov dword [r8], eax
mov r8, qword [rsp + 0x58]
movsx eax, word [rbp + 0x7c]
mov dword [r8], eax
mov r8, qword [rbp + 0x18]
movsx eax, word [rbp + 0x7e]
mov dword [r8], eax
mov r8, qword [rbp - 0x28]
movsx eax, word [rbp + 0x82]
mov dword [r8], eax
mov r8, qword [rbp + 0x58]
movsx eax, word [rbp + 0x84]
mov dword [r8], eax
movsx eax, word [rbp + 0xb0]
mov r8, qword [rsp + 0x30]
test eax, eax
cmove eax, r9d
mov dword [r8], eax
movsx eax, word [rbp + 0xb2]
mov r8, qword [rsp + 0x48]
mov dword [r15], eax
movsx eax, word [rbp + 0xb4]
mov dword [r13], eax
movsx eax, word [rbp + 0xb6]
mov dword [r8], eax
mov r8, qword [rbp - 0x80]
movsx eax, word [rbp + 0xb8]
mov dword [r8], eax
mov r8, qword [rbp - 0x70]
movsx eax, word [rbp + 0xba]
mov dword [r8], eax
mov r8, qword [rbp - 0x60]
movsx eax, word [rbp + 0xbc]
mov dword [r8], eax
movsx eax, word [rbp + 0xbe]
mov r8, qword [rbp - 0x50]
test eax, eax
cmove eax, r10d
mov dword [r8], eax
mov eax, dword [rcx]
cmp eax, r14d
cmove eax, r9d
mov dword [rcx], eax
movd xmm2, dword [rcx]
cvtdq2ps xmm2, xmm2
cvtps2pd xmm0, xmm2
divsd xmm1, xmm0
cvtpd2ps xmm4, xmm1
cmp dword [r8], r9d
jne 0x140125bd8
movsd xmm1, qword [0x14020eb68]
cvtps2pd xmm0, xmm2
divsd xmm1, xmm0
cvtpd2ps xmm4, xmm1
movd xmm0, dword [rdx]
movsx eax, word [rbp + 0xc0]
mov r9, qword [rbp - 0x40]
mov r10, qword [rbp - 0x30]
movd xmm1, eax
movsx eax, word [rbp + 0xc2]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
divss xmm1, xmm2
movd xmm2, eax
movsx eax, word [rbp + 0xc4]
movd xmm3, eax
cvtdq2ps xmm2, xmm2
addss xmm1, xmm0
addss xmm1, xmm4
cvtdq2ps xmm3, xmm3
movss dword [r9], xmm1
movd xmm0, dword [rcx]
movd xmm1, dword [rdx]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
divss xmm2, xmm0
addss xmm2, xmm1
addss xmm2, xmm4
movss dword [r10], xmm2
movd xmm0, dword [rcx]
movd xmm1, dword [rdx]
mov rcx, qword [rbp - 0x20]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
divss xmm3, xmm0
addss xmm3, xmm1
addss xmm3, xmm4
movss dword [rcx], xmm3
cmp dword [r8], 4
jne 0x140125cd1
movzx eax, word [rbp + 0xc6]
mov word [rsp + 0x22], ax
movzx eax, word [rbp + 0xc8]
mov word [rsp + 0x20], ax
movzx eax, word [rbp + 0xca]
movss xmm0, dword [rsp + 0x20]
mov word [rsp + 0x22], ax
movzx eax, word [rbp + 0xcc]
movss dword [r9], xmm0
mov word [rsp + 0x20], ax
movzx eax, word [rbp + 0xce]
movss xmm0, dword [rsp + 0x20]
mov word [rsp + 0x22], ax
movzx eax, word [rbp + 0xd0]
movss dword [r10], xmm0
mov word [rsp + 0x20], ax
movss xmm0, dword [rsp + 0x20]
movss dword [rcx], xmm0
mov r11, qword [rbp - 0x10]
lea r10, [rbp + 0x85]
mov r9d, 0x14
lea r8, [r11 + 1]
sub r10, r11
nop dword [rax]
movsx eax, word [r10 + r8]
lea r8, [r8 + 2]
cdq
movzx edx, dl
add eax, edx
mov ecx, eax
movzx eax, al
sub eax, edx
sar ecx, 8
mov byte [r8 - 3], al
mov byte [r8 - 2], cl
dec r9
jne 0x140125cf0
mov r12, qword [rbp]
lea r10, [rbp + 0xd1]
mov byte [r11 + 0x28], r14b
lea r8, [r12 + 1]
sub r10, r12
mov r9d, 0x45
nop dword [rax]
nop word [rax + rax]
movsx eax, word [r10 + r8]
lea r8, [r8 + 2]
cdq
movzx edx, dl
add eax, edx
mov ecx, eax
movzx eax, al
sub eax, edx
sar ecx, 8
mov byte [r8 - 3], al
mov byte [r8 - 2], cl
dec r9
jne 0x140125d40
mov r11, qword [rbp + 0x10]
lea r10, [rbp + 0x15f]
mov byte [r12 + 0x8a], r14b
lea r8, [r11 + 1]
sub r10, r11
mov r9d, 0x28
nop word [rax + rax]
movsx eax, word [r10 + r8]
lea r8, [r8 + 2]
cdq
movzx edx, dl
add eax, edx
mov ecx, eax
movzx eax, al
sub eax, edx
sar ecx, 8
mov byte [r8 - 3], al
mov byte [r8 - 2], cl
dec r9
jne 0x140125d90
mov rdi, qword [rbp + 0x20]
lea r10, [rbp + 0x1b1]
mov byte [r11 + 0x50], r14b
lea r8, [rdi + 1]
sub r10, rdi
mov r9d, 0x14
nop dword [rax]
nop word [rax + rax]
movsx eax, word [r10 + r8]
lea r8, [r8 + 2]
cdq
movzx edx, dl
add eax, edx
mov ecx, eax
movzx eax, al
sub eax, edx
sar ecx, 8
mov byte [r8 - 3], al
mov byte [r8 - 2], cl
dec r9
jne 0x140125de0
mov rbx, qword [rbp + 0x30]
lea r10, [rbp + 0x1db]
mov byte [rdi + 0x28], r14b
lea r8, [rbx + 1]
sub r10, rbx
mov r9d, 0x32
nop dword [rax]
nop word [rax + rax]
movsx eax, word [r10 + r8]
lea r8, [r8 + 2]
cdq
movzx edx, dl
add eax, edx
mov ecx, eax
movzx eax, al
sub eax, edx
sar ecx, 8
mov byte [r8 - 3], al
mov byte [r8 - 2], cl
dec r9
jne 0x140125e30
mov r11, qword [rbp + 0x40]
lea r10, [rbp + 0x241]
mov byte [rbx + 0x64], r14b
lea r8, [r11 + 1]
sub r10, r11
mov r9d, 0xe
nop dword [rax]
nop word [rax + rax]
movsx eax, word [r10 + r8]
lea r8, [r8 + 2]
cdq
movzx edx, dl
add eax, edx
mov ecx, eax
movzx eax, al
sub eax, edx
sar ecx, 8
mov byte [r8 - 3], al
mov byte [r8 - 2], cl
dec r9
jne 0x140125e80
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov byte [r11 + 0x1c], r14b
cmp dword [rax], 1
jne 0x140125ee1
mov rdx, qword [rsp + 0x48]
mov dword [rcx], 1
mov dword [r15], r14d
mov dword [r13], r14d
mov dword [rdx], r14d
mov byte [r12], r14b
mov byte [rdi], r14b
mov byte [rbx], r14b
mov byte [r11], r14b
mov dword [rax], 0x14
cmp dword [rcx], 1
jle 0x140126058
cmp dword [r15], r14d
jle 0x14012607d
mov ebx, dword [r13]
movsxd r13, dword [rsp + 0x38]
cmp ebx, r13d
jl 0x140125f1c
call fcn.1401be514
lea rdx, str._read_sir_head3_warning:_file_description_too_short__needed:__d_avail:__d__n
mov r9d, r13d
lea rcx, [rax + 0x60]
mov r8d, ebx
call fcn.1401be844
mov r12, qword [rsp + 0x40]
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [r12]
call fcn.1401c1f88
cmp dword [r15], r14d
jle 0x140125fca
mov rbx, r14
nop
mov r9, qword [r12]
lea rcx, [rbp + 0x60]
mov edx, 2
mov r8d, 0x100
call fcn.1401c1e14
test rax, rax
je 0x140125795
lea rcx, [rbp + 0x60]
mov edx, 0x100
call fcn.140126110
lea rcx, [rbp + 0x60]
mov r8d, 0x100
nop dword [rax]
cmp rbx, r13
jge 0x140125f9b
movsx eax, word [rcx]
and eax, 0x800000ff
jge 0x140125f98
dec eax
or eax, 0xffffff00
inc eax
mov byte [rbx + rsi], al
inc rbx
cmp rbx, r13
jge 0x140125fb2
movsx eax, word [rcx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov byte [rbx + rsi], al
inc rbx
add rcx, 2
dec r8
jne 0x140125f80
inc r14d
cmp r14d, dword [r15]
jl 0x140125f40
mov rcx, qword [rsp + 0x30]
test r13d, r13d
jle 0x140125fdc
movsxd rax, r13d
mov byte [rsi + rax - 1], 0
mov edx, dword [r15]
mov eax, dword [rcx]
sub eax, edx
dec eax
test eax, eax
jle 0x140126058
mov rcx, qword [r12]
inc edx
xor r8d, r8d
shl edx, 9
call fcn.1401c1f88
mov rsi, qword [rsp + 0x48]
mov edi, dword [rbp + 0x428]
mov ebx, dword [rsi]
cmp ebx, edi
jl 0x140126026
call fcn.1401be514
lea rdx, str._read_sir_head3_warning:_header_extra_ints_too_short__needed:__d_avail:__d__n
mov r9d, edi
lea rcx, [rax + 0x60]
mov r8d, ebx
call fcn.1401be844
mov ebx, dword [rsi]
mov r9, qword [r12]
mov edx, 2
cmp edi, ebx
cmovl ebx, edi
mov rdi, qword [rbp + 0x50]
mov rcx, rdi
movsxd r8, ebx
call fcn.1401c1e14
test rax, rax
je 0x140125795
mov edx, ebx
mov rcx, rdi
call fcn.140126110
xor eax, eax
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x378
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r12, qword [rsp + 0x40]
mov r13d, dword [rsp + 0x38]
jmp 0x140125fcf