Function at 0x18006c770
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x18006cc31
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xf8
mov rax, qword [0x18017a040]
xor rax, rsp
mov qword [rbp + 7], rax
mov rax, qword [0x18017cdb0]
mov rbx, rcx
shl rax, 5
mov rsi, r8
add rax, qword [0x18017b078]
mov rdi, rdx
movaps xmmword [rsp + 0xe0], xmm7
cmp qword [rax + 0x10], 8
lea rcx, [rax + 0x18]
jbe 0x18006c7c8
mov rcx, qword [rcx]
cmp byte [rcx], 0
je 0x18006cadf
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 0x18006c8d3
mov eax, dword [rcx + 4]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x18006c8d3
mov eax, dword [rcx + 8]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x18006c8d3
movss xmm0, dword [0x180162f50]
comiss xmm0, xmm1
mov dword [rsp + 0x30], 0x42b20000
ja 0x18006c859
comiss xmm1, dword [0x180162ea0]
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 [0x180162f58]
comiss xmm0, xmm1
mov dword [rsp + 0x30], 0x43340000
ja 0x18006c88e
comiss xmm1, dword [0x180162ebc]
lea rax, [rsp + 0x30]
cmovbe rax, rdx
movss xmm0, dword [rax]
add rcx, 8
movss dword [rdx], xmm0
movss xmm0, dword [0x180162f4c]
mov dword [rsp + 0x30], 0x42340000
movss xmm1, dword [rcx]
comiss xmm0, xmm1
ja 0x18006c8c3
comiss xmm1, dword [0x180162e88]
lea rax, [rsp + 0x30]
cmovbe rax, rcx
movss xmm0, dword [rax]
xor r14d, r14d
movss dword [rcx], xmm0
mov dword [r8 + 0x20], r14d
jmp 0x18006cad7
xor r14d, r14d
mov dl, 2
mov qword [rcx], r14
mov dword [rcx + 8], r14d
call fcn.180075a40
movabs rax, 0x7a19c84c28371091
movabs rcx, 0xd667607a44b30a6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x79], rax
movabs rax, 0xbfe34c1116cf36ac
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x71], rax
movabs rax, 0x6522a587d4d53579
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x69], rax
movabs rax, 0xf0ae8f7d802361ad
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x61], rax
movabs rax, 0x290dd0d565a1f537
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x59], rax
movabs rax, 0xf82e91f446495d08
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x51], rax
movabs rax, 0x371ff37a22848248
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, 0x1d77a96c5f5279e7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x39], rax
movabs rax, 0xda952d7936bc53c0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x31], rax
movabs rax, 0x602ebe69af55459
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x29], rax
movabs rax, 0x84c0ea13ef530cc2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x21], rax
movabs rax, 0x487bf0b00dd5d51b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x19], rax
movabs rax, 0x8a0ee29d662c2864
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x11], rax
movabs rax, 0x371ff37a56e1f12d
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 0x18006cabb
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x18006cab0
mov rcx, qword [0x18017aed8]
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, [0x18017c6e0]
mov rdx, rsi
mov rcx, rdi
call fcn.18006cc40
mov rax, qword [rbx + 0x50]
xorps xmm7, xmm7
mov qword [rbx + 0x50], rax
movss xmm0, dword [rdi + 0x50]
comiss xmm0, xmm7
jbe 0x18006cb0c
or rax, 8
jmp 0x18006cb15
comiss xmm7, xmm0
jbe 0x18006cb19
or rax, 0x10
mov qword [rbx + 0x50], rax
movss xmm0, dword [rdi + 0x54]
comiss xmm0, xmm7
jbe 0x18006cb2a
bts rax, 8
jmp 0x18006cb34
comiss xmm7, xmm0
jbe 0x18006cb38
bts rax, 7
mov qword [rbx + 0x50], rax
mov rax, qword [rsi + 0x18]
movss xmm2, dword [rax + 0x18]
ucomiss xmm2, xmm7
jp 0x18006cb64
jne 0x18006cb64
movss xmm0, dword [rax + 0x1c]
ucomiss xmm0, xmm7
jp 0x18006cb64
jne 0x18006cb64
movss xmm1, dword [rax + 0x20]
ucomiss xmm1, xmm7
jp 0x18006cb64
je 0x18006cc12
subss xmm2, dword [0x18017c6e0]
movss xmm1, dword [0x180162ed4]
movaps xmmword [rsp + 0xd0], xmm8
movaps xmm0, xmm2
call fcn.1800e7a74
mov rax, qword [rsi + 0x18]
movaps xmm8, xmm0
movss xmm1, dword [0x180162ed4]
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [0x18017c6e4]
call fcn.1800e7a74
mov rcx, qword [0x18017c880]
movaps xmm2, xmm0
mov rax, qword [0x18017c868]
movss xmm3, dword [rcx + 0x40]
mov rcx, qword [0x18017c878]
movss xmm1, dword [rcx + 0x40]
ucomiss xmm1, xmm7
jp 0x18006cbd8
jne 0x18006cbd8
movss xmm1, dword [0x180162dac]
xorps xmm2, xmmword [0x1801630b0]
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.1800da960
add rsp, 0xf8
pop rdi
pop rsi
pop rbx
pop rbp
ret