Function at 0x180068650
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x180068b11
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xf8
mov rax, qword [0x180176040]
xor rax, rsp
mov qword [rbp + 7], rax
mov rax, qword [0x180178e00]
mov rbx, rcx
shl rax, 5
mov rsi, r8
add rax, qword [0x180177078]
mov rdi, rdx
movaps xmmword [rsp + 0xe0], xmm7
cmp qword [rax + 0x10], 8
lea rcx, [rax + 0x18]
jbe 0x1800686a8
mov rcx, qword [rcx]
cmp byte [rcx], 0
je 0x1800689bf
mov r8, qword [r8 + 0x18]
movss xmm1, dword [r8 + 0x18]
lea rcx, [r8 + 0x18]
movd eax, xmm1
mov qword [rsp + 0xf0], r14
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x1800687b3
mov eax, dword [rcx + 4]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x1800687b3
mov eax, dword [rcx + 8]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x1800687b3
movss xmm0, dword [0x18015f118]
comiss xmm0, xmm1
mov dword [rsp + 0x30], 0x42b20000
ja 0x180068739
comiss xmm1, dword [0x18015f068]
lea rax, [rsp + 0x30]
cmovbe rax, rcx
movss xmm0, dword [rax]
movss dword [rcx], xmm0
lea rdx, [rcx + 4]
movss xmm1, dword [rdx]
movss xmm0, dword [0x18015f120]
comiss xmm0, xmm1
mov dword [rsp + 0x30], 0x43340000
ja 0x18006876e
comiss xmm1, dword [0x18015f084]
lea rax, [rsp + 0x30]
cmovbe rax, rdx
movss xmm0, dword [rax]
add rcx, 8
movss dword [rdx], xmm0
movss xmm0, dword [0x18015f114]
mov dword [rsp + 0x30], 0x42340000
movss xmm1, dword [rcx]
comiss xmm0, xmm1
ja 0x1800687a3
comiss xmm1, dword [0x18015f050]
lea rax, [rsp + 0x30]
cmovbe rax, rcx
movss xmm0, dword [rax]
xor r14d, r14d
movss dword [rcx], xmm0
mov dword [r8 + 0x20], r14d
jmp 0x1800689b7
xor r14d, r14d
mov dl, 2
mov qword [rcx], r14
mov dword [rcx + 8], r14d
call fcn.180071f90
movabs rax, 0x23802a06dc1e2ff9
movabs rcx, 0x1cc0e701acb43042
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x79], rax
movabs rax, 0x52c901071411dbe8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x71], rax
movabs rax, 0x6c15ae2d6abb67a1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x69], rax
movabs rax, 0x736400234c9fe651
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x61], rax
movabs rax, 0x7c415d9f13c3f75f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x59], rax
movabs rax, 0x19e7a50ac2c82094
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x51], rax
movabs rax, 0x530a58d04f4ba440
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x49], rax
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x41], rax
movabs rax, 0x44ee4b26ab7b468f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x39], rax
movabs rax, 0x37bf606f3462be84
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x31], rax
movabs rax, 0xf35e04c249b0681
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x29], rax
movabs rax, 0x70a654d23ef8b3e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x21], rax
movabs rax, 0x1d377dfa7bb7d773
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x19], rax
movabs rax, 0x6bc7d663e2ad55f8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x11], rax
movabs rax, 0x530a58d03b2ed725
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 9], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x79]
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rbp - 0x69]
xorps xmm0, xmmword [rbp - 0x29]
movdqa xmm2, xmmword [rbp - 0x79]
movdqa xmm1, xmmword [rbp - 0x59]
xorps xmm2, xmmword [rbp - 0x39]
xorps xmm1, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x69], xmm0
movdqa xmm0, xmmword [rbp - 0x49]
mov qword [rbp - 1], rax
xorps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmmword [rbp - 0x79], xmm2
movdqa xmmword [rbp - 0x59], xmm1
movq rax, xmm2
lea rdx, [rbp - 0x79]
mov r8d, edx
test al, al
je 0x18006899b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x180068990
mov rcx, qword [0x180176ed8]
sub r8d, edx
lea rdx, [rbp - 0x79]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14, qword [rsp + 0xf0]
lea r8, [0x180178710]
mov rdx, rsi
mov rcx, rdi
call fcn.180068b20
mov rax, qword [rbx + 0x50]
xorps xmm7, xmm7
mov qword [rbx + 0x50], rax
movss xmm0, dword [rdi + 0x50]
comiss xmm0, xmm7
jbe 0x1800689ec
or rax, 8
jmp 0x1800689f5
comiss xmm7, xmm0
jbe 0x1800689f9
or rax, 0x10
mov qword [rbx + 0x50], rax
movss xmm0, dword [rdi + 0x54]
comiss xmm0, xmm7
jbe 0x180068a0a
bts rax, 8
jmp 0x180068a14
comiss xmm7, xmm0
jbe 0x180068a18
bts rax, 7
mov qword [rbx + 0x50], rax
mov rax, qword [rsi + 0x18]
movss xmm2, dword [rax + 0x18]
ucomiss xmm2, xmm7
jp 0x180068a44
jne 0x180068a44
movss xmm0, dword [rax + 0x1c]
ucomiss xmm0, xmm7
jp 0x180068a44
jne 0x180068a44
movss xmm1, dword [rax + 0x20]
ucomiss xmm1, xmm7
jp 0x180068a44
je 0x180068af2
subss xmm2, dword [0x180178710]
movss xmm1, dword [0x18015f09c]
movaps xmmword [rsp + 0xd0], xmm8
movaps xmm0, xmm2
call fcn.1800e6550
mov rax, qword [rsi + 0x18]
movaps xmm8, xmm0
movss xmm1, dword [0x18015f09c]
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [0x180178714]
call fcn.1800e6550
mov rcx, qword [0x1801788a0]
movaps xmm2, xmm0
mov rax, qword [0x180178888]
movss xmm3, dword [rcx + 0x40]
mov rcx, qword [0x180178898]
movss xmm1, dword [rcx + 0x40]
ucomiss xmm1, xmm7
jp 0x180068ab8
jne 0x180068ab8
movss xmm1, dword [0x18015ef74]
xorps xmm2, xmmword [0x18015f280]
movaps xmm0, xmm1
mulss xmm0, dword [rax + 0x40]
mulss xmm1, xmm3
divss xmm8, xmm0
divss xmm2, xmm1
cvttss2si eax, xmm8
movaps xmm8, xmmword [rsp + 0xd0]
movsx ecx, ax
cvttss2si eax, xmm2
mov dword [rdi + 0x68], ecx
movsx ecx, ax
mov dword [rdi + 0x6c], ecx
movaps xmm7, xmmword [rsp + 0xe0]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1800d6ea0
add rsp, 0xf8
pop rdi
pop rsi
pop rbx
pop rbp
ret