Function at 0x18006d550
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x18006d9fa
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x18017b040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [0x18017de70]
mov rdi, r8
shl rax, 5
mov rbx, rdx
add rax, qword [0x18017c080]
movaps xmmword [rsp + 0xe0], xmm7
cmp qword [rax + 0x10], 8
lea rcx, [rax + 0x18]
jbe 0x18006d5a4
mov rcx, qword [rcx]
cmp byte [rcx], 0
je 0x18006d890
or qword [r8 + 0x10], 1
mov rcx, qword [r8 + 0x18]
add rcx, 0x18
mov qword [rsp + 0x110], rsi
movss xmm1, dword [rcx]
movd eax, xmm1
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x18006d6b0
mov eax, dword [rcx + 4]
lea r8, [rcx + 4]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x18006d6b0
mov eax, dword [rcx + 8]
lea rdx, [rcx + 8]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x18006d6b0
movss xmm0, dword [0x1801641a0]
comiss xmm0, xmm1
mov dword [rbp - 0x79], 0x42b20000
ja 0x18006d63e
comiss xmm1, dword [0x1801640dc]
lea rax, [rbp - 0x79]
cmovbe rax, rcx
movss xmm0, dword [rax]
movss dword [rcx], xmm0
movss xmm1, dword [r8]
movss xmm0, dword [0x1801641a8]
comiss xmm0, xmm1
mov dword [rbp - 0x79], 0x43340000
ja 0x18006d66e
comiss xmm1, dword [0x1801640fc]
lea rax, [rbp - 0x79]
cmovbe rax, r8
movss xmm0, dword [rax]
movss dword [r8], xmm0
movss xmm1, dword [rdx]
movss xmm0, dword [0x18016419c]
comiss xmm0, xmm1
mov dword [rbp - 0x79], 0x42340000
ja 0x18006d69e
comiss xmm1, dword [0x1801640c0]
lea rax, [rbp - 0x79]
cmovbe rax, rdx
movss xmm0, dword [rax]
movss dword [rdx], xmm0
xor esi, esi
mov rax, qword [rdi + 0x18]
mov dword [rax + 0x20], esi
jmp 0x18006d888
xor esi, esi
mov dl, 2
mov qword [rcx], rsi
mov dword [rcx + 8], esi
call fcn.180076b10
movabs rax, 0xb06c23cabe1faa81
movabs rcx, 0x86ffcdad26afdba2
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x69], rax
movabs rax, 0xecb158abbf7d8b70
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x61], rax
movabs rax, 0x81389411e791121
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x59], rax
movabs rax, 0x7158d578ce90c81
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x51], rax
movabs rax, 0xddfaff7be0c75f27
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x49], rax
movabs rax, 0x31390fe4ac4357c
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x41], rax
movabs rax, 0x37163634d2203140
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x79], rcx
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x31], rax
movabs rax, 0xd70242eac97ac3f7
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x29], rax
movabs rax, 0x89c739c39f0eee1c
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x21], rax
movabs rax, 0x6b33c72050597001
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x19], rax
movabs rax, 0x737be839e39961ee
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x11], rax
movabs rax, 0xbc8cdf1e88b37f0b
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 9], rax
movabs rax, 0x7133e3976aa14010
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 1], rax
movabs rax, 0x37163634a6454225
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp + 7], rax
mov qword [rbp - 0x79], rcx
lea rcx, [rbp - 0x69]
mov rax, qword [rbp - 0x79]
movdqa xmm0, xmmword [rbp - 0x59]
xorps xmm0, xmmword [rbp - 0x19]
movdqa xmm2, xmmword [rbp - 0x69]
movdqa xmm1, xmmword [rbp - 0x49]
xorps xmm2, xmmword [rbp - 0x29]
xorps xmm1, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x59], xmm0
movdqa xmm0, xmmword [rbp - 0x39]
mov qword [rbp + 0xf], rax
xorps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x39], xmm0
movdqa xmmword [rbp - 0x69], xmm2
movdqa xmmword [rbp - 0x49], xmm1
movq rax, xmm2
lea rdx, [rbp - 0x69]
mov r8d, edx
test al, al
je 0x18006d86c
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x18006d861
mov rcx, qword [0x18017bed8]
sub r8d, edx
lea rdx, [rbp - 0x69]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x110]
lea r8, [0x18017d730]
mov rdx, rdi
mov rcx, rbx
call fcn.18006da00
mov rax, qword [rbx + 0x38]
xorps xmm7, xmm7
or qword [rax + 0x10], 1
movss xmm0, dword [rbx + 0x50]
comiss xmm0, xmm7
jbe 0x18006d8c3
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 8
jmp 0x18006d8d1
comiss xmm7, xmm0
jbe 0x18006d8d1
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 0x10
movss xmm0, dword [rbx + 0x54]
comiss xmm0, xmm7
jbe 0x18006d8e9
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 0x100
jmp 0x18006d8fa
comiss xmm7, xmm0
jbe 0x18006d8fa
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 0x80
mov rax, qword [rdi + 0x18]
movss xmm2, dword [rax + 0x18]
ucomiss xmm2, xmm7
jp 0x18006d926
jne 0x18006d926
movss xmm0, dword [rax + 0x1c]
ucomiss xmm0, xmm7
jp 0x18006d926
jne 0x18006d926
movss xmm1, dword [rax + 0x20]
ucomiss xmm1, xmm7
jp 0x18006d926
je 0x18006d9dc
subss xmm2, dword [0x18017d730]
movss xmm1, dword [0x180164118]
movaps xmmword [rsp + 0xd0], xmm8
movaps xmm0, xmm2
call fcn.1800e7ab0
mov rax, qword [rdi + 0x18]
movaps xmm8, xmm0
movss xmm1, dword [0x180164118]
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [0x18017d734]
call fcn.1800e7ab0
mov rcx, qword [0x18017d948]
movaps xmm2, xmm0
mov rax, qword [0x18017d930]
movss xmm3, dword [rcx + 0x40]
mov rcx, qword [0x18017d940]
movss xmm1, dword [rcx + 0x40]
ucomiss xmm1, xmm7
jp 0x18006d99a
jne 0x18006d99a
movss xmm1, dword [0x180163fe0]
xorps xmm2, xmmword [0x180164590]
movaps xmm0, xmm1
mulss xmm0, dword [rax + 0x40]
or qword [rbx + 0x10], 0x1800
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 [rbx + 0x68], ecx
movsx ecx, ax
mov dword [rbx + 0x6c], ecx
movaps xmm7, xmmword [rsp + 0xe0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800dbb40
add rsp, 0xf0
pop rdi
pop rbx
pop rbp
ret