Function at 0x180054590
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x180054a71
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x18015f040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [0x180161a40]
mov rdi, r8
shl rax, 5
mov rbx, rdx
add rax, qword [0x18015ffc0]
movaps xmmword [rsp + 0xe0], xmm7
cmp qword [rax + 0x10], 8
lea rcx, [rax + 0x18]
jbe 0x1800545e4
mov rcx, qword [rcx]
cmp byte [rcx], 0
je 0x1800548dc
mov rax, qword [r8 + 0x10]
test al, 1
jne 0x1800545fd
or rax, 1
mov qword [r8 + 0x10], rax
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 0x1800546f9
mov eax, dword [rcx + 4]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x1800546f9
mov eax, dword [rcx + 8]
and eax, 0x7f800000
cmp eax, 0x7f800000
setne al
cmp al, 1
jne 0x1800546f9
movss xmm0, dword [0x180149cec]
comiss xmm0, xmm1
mov dword [rbp - 0x79], 0x42b20000
ja 0x180054681
comiss xmm1, dword [0x180149c60]
lea rax, [rbp - 0x79]
cmovbe rax, rcx
movss xmm0, dword [rax]
movss dword [rcx], xmm0
lea rdx, [rcx + 4]
movss xmm1, dword [rdx]
movss xmm0, dword [0x180149cf4]
comiss xmm0, xmm1
mov dword [rbp - 0x79], 0x43340000
ja 0x1800546b4
comiss xmm1, dword [0x180149c74]
lea rax, [rbp - 0x79]
cmovbe rax, rdx
movss xmm0, dword [rax]
add rcx, 8
movss dword [rdx], xmm0
movss xmm0, dword [0x180149ce8]
mov dword [rbp - 0x79], 0x42340000
movss xmm1, dword [rcx]
comiss xmm0, xmm1
ja 0x1800546e7
comiss xmm1, dword [0x180149c54]
lea rax, [rbp - 0x79]
cmovbe rax, rcx
movss xmm0, dword [rax]
movss dword [rcx], xmm0
xor esi, esi
mov rax, qword [r8 + 0x18]
mov dword [rax + 0x20], esi
jmp 0x1800548d4
xor esi, esi
mov dl, 2
mov qword [rcx], rsi
mov dword [rcx + 8], esi
call fcn.18005c2c0
movabs rax, 0xb6e57a94bb1e90a9
movabs rcx, 0xc506487f39fd516
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x69], rax
movabs rax, 0x42f51bf97001ba64
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x61], rax
movabs rax, 0x354a62b71dded7e1
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x59], rax
movabs rax, 0xb4f26d95c96475dd
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x51], rax
movabs rax, 0xa469cf953c57e13f
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x49], rax
movabs rax, 0xea79e2c4291c1580
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x41], rax
movabs rax, 0xe061d7a22727f110
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, 0xd18b1bb4cc7bf9df
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x29], rax
movabs rax, 0x27837a915072df08
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x21], rax
movabs rax, 0x566a2cd653feb6c1
movdqa xmm2, xmmword [rbp - 0x29]
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x19], rax
movabs rax, 0xc09c08fba61418b2
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x11], rax
movabs rax, 0xc51feff05423c113
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 9], rax
movabs rax, 0x985991ad097960ec
mov qword [rbp - 0x79], rax
mov rax, qword [rbp - 0x79]
mov qword [rbp - 1], rax
movabs rax, 0xe061d7a253428275
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 xmm1, xmmword [rbp - 0x49]
xorps xmm2, xmmword [rbp - 0x69]
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 0x1800548bb
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x1800548b0
xor r9d, r9d
mov qword [rsp + 0x20], rsi
sub r8d, edx
lea rdx, [rbp - 0x69]
lea rcx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x110]
lea r8, [0x180161448]
mov rdx, rdi
mov rcx, rbx
call fcn.180054a80
mov rcx, qword [rbx + 0x38]
mov rax, qword [rcx + 0x10]
test al, 1
jne 0x180054902
or rax, 1
mov qword [rcx + 0x10], rax
movss xmm0, dword [rbx + 0x50]
xorps xmm7, xmm7
comiss xmm0, xmm7
jbe 0x18005491a
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 8
jmp 0x180054928
comiss xmm7, xmm0
jbe 0x180054928
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 0x10
movss xmm0, dword [rbx + 0x54]
comiss xmm0, xmm7
jbe 0x180054940
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 0x100
jmp 0x180054951
comiss xmm7, xmm0
jbe 0x180054951
mov rax, qword [rbx + 0x38]
or qword [rax + 0x18], 0x80
mov rax, qword [rdi + 0x18]
movss xmm2, dword [rax + 0x18]
ucomiss xmm2, xmm7
jp 0x18005497d
jne 0x18005497d
movss xmm0, dword [rax + 0x1c]
ucomiss xmm0, xmm7
jp 0x18005497d
jne 0x18005497d
movss xmm1, dword [rax + 0x20]
ucomiss xmm1, xmm7
jp 0x18005497d
je 0x180054a53
subss xmm2, dword [0x180161448]
movss xmm1, dword [0x180149c84]
movaps xmmword [rsp + 0xd0], xmm8
movaps xmm0, xmm2
call fcn.1800ce7e4
mov rax, qword [rdi + 0x18]
movaps xmm8, xmm0
movss xmm1, dword [0x180149c84]
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [0x18016144c]
call fcn.1800ce7e4
mov rax, qword [0x1801615f8]
movaps xmm2, xmm0
movss xmm4, dword [rax + 0x40]
mov rax, qword [0x180161610]
movss xmm3, dword [rax + 0x40]
mov rax, qword [0x180161608]
movss xmm1, dword [rax + 0x40]
ucomiss xmm1, xmm7
jp 0x1800549f6
jne 0x1800549f6
movss xmm1, dword [0x180149bb8]
mov rdx, qword [rbx + 0x10]
bt rdx, 0xb
jb 0x180054a0a
bts rdx, 0xb
mov qword [rbx + 0x10], rdx
movaps xmm0, xmm1
mulss xmm0, xmm4
divss xmm8, xmm0
cvttss2si eax, xmm8
movaps xmm8, xmmword [rsp + 0xd0]
movsx ecx, ax
mov dword [rbx + 0x68], ecx
bt rdx, 0xc
jb 0x180054a3a
bts rdx, 0xc
mov qword [rbx + 0x10], rdx
xorps xmm2, xmmword [0x180149e10]
mulss xmm1, xmm3
divss xmm2, xmm1
cvttss2si eax, xmm2
movsx ecx, ax
mov dword [rbx + 0x6c], ecx
movaps xmm7, xmmword [rsp + 0xe0]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800c16d0
add rsp, 0xf0
pop rdi
pop rbx
pop rbp
ret