Function at 0x180053f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], 0xe
mov qword [rsp + 0x70], 0xf
vmovsd xmm0, qword [str.phasmohook.log]
vmovsd qword [rsp + 0x58], xmm0
mov eax, dword [0x1800d7288]
mov dword [rsp + 0x60], eax
movzx eax, word [0x1800d728c]
mov word [rsp + 0x64], ax
mov byte [rsp + 0x66], r12b
call fcn.180052f70
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x78], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x78], xmm1
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180053fc0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180007dc0
nop
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180015940
mov dword [rsp + 0x50], 1
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x18005402f
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005402a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180054301
call fcn.18006f1e0
vmovdqu xmm0, xmmword [0x1800d85a0]
vmovdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18005407e
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180054079
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180054307
call fcn.18006f1e0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae r8, qword [rbp - 0x68]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, dword [rbp - 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180055f60
mov r14d, 3
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae r8, qword [rbp - 0x68]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rbp - 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
and r14d, 0xfffffffd
mov dword [rsp + 0x50], r14d
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x180054193
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005418e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005430d
call fcn.18006f1e0
vmovdqu xmm0, xmmword [0x1800d8580]
vmovdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
cmp r15, 0xffffffffffffffff
je 0x18005428e
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov r11, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1800541dc
mov r11, qword [rsi]
movzx eax, word [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
movzx edx, word [rsp + 0x60]
movzx r10d, word [rsp + 0x5e]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov qword [rsp + 0x40], r11
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, str._04d__02d__02d__02d:_02d:_02d:__s_n
lea rcx, [rbp - 0x40]
call fcn.180032bd0
lea rax, [rbp - 0x40]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180054227
mov r8, rdi
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x808]
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rsi + 0x18], 0x10
jb 0x180054256
mov rsi, qword [rsi]
mov rdx, rsi
call fcn.180058b60
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1800588d0
movzx edx, al
mov rcx, rbx
call fcn.18005a470
mov rcx, rbx
call fcn.18005a330
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and r14d, 0xfffffffe
mov dword [rsp + 0x50], r14d
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1800542ce
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800542c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800542fb
call fcn.18006f1e0
vmovdqu xmm0, xmmword [0x1800d85a0]
vmovdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.180075e04
nop
call fcn.180075e04
nop
call fcn.180075e04
int3
call fcn.180075e04
int3