Function at 0x1400087e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r13, 0xffffffffffffffff
lea rdx, str.Search
mov r8d, r13d
mov r15, rcx
call fcn.140007aa0
mov r9d, dword [0x140039b20]
lea r8, str.PosX
lea rdx, str._s_d_r_n
mov ebp, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r12d, r12d
lea r9, [rsp + 0x30]
add eax, eax
mov qword [rsp + 0x20], r12
mov r8d, eax
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, dword [0x140039b24]
lea r8, str.PosY
lea rdx, str._s_d_r_n
mov esi, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
add eax, eax
lea rdx, [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x30], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, dword [0x140039b28]
lea r8, str.Width
lea rdx, str._s_d_r_n
mov edi, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
add eax, eax
lea rdx, [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x30], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, dword [0x140036bd8]
lea r8, [0x14002a598]
lea rdx, str._s_d_r_n
mov ebx, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
add eax, eax
lea rdx, [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x30], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, eax
and r14d, ebx
lea rbx, [0x140039b30]
and r14d, edi
mov rcx, rbx
and r14d, esi
and r14d, ebp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.140013bc8
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov edx, r12d
movsxd r8, eax
test eax, eax
js 0x1400089e7
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx], ax
test ax, ax
je 0x1400089e7
cmp ax, 0x5b
jne 0x1400089db
add rcx, 2
mov word [rcx], 0x5c
add rcx, 2
inc rdx
cmp rdx, r8
jle 0x1400089c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str.LastWord
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str._s_s_r_n
lea edi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rdi + rbx]
add ecx, eax
mov eax, 2
movsxd r9, ecx
mul r9
cmovo rax, r13
mov rcx, rax
call fcn.140013bc8
mov r9, rsi
lea r8, str.LastWord
lea rdx, str._s_s_r_n
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
add eax, eax
mov rdx, rdi
mov r8d, eax
mov dword [rsp + 0x30], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call fcn.140013bc0
mov rcx, rsi
call fcn.140013bc0
and ebx, r14d
and ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140013ba0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret