Function at 0x14008e140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov edi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
xor esi, esi
call fcn.14008d4a0
cmp word [r14], si
lea r15d, [rsi + 1]
je 0x14008e1a5
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov r8d, r15d
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
jmp 0x14008e1b3
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
cmp r12, 0xffffffffffffffff
je 0x14008e49a
test edi, edi
mov qword [rsp + 0xb0], r13
jne 0x14008e1f0
cmp ebp, 4
je 0x14008e1f0
lea r9, [rsp + 0x40]
lea r8d, [rdi + 2]
lea rdx, [0x1400a9b88]
mov rcx, r12
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
cmp ebp, 5
mov qword [0x1400c16d0], rax
je 0x14008e217
cmp ebp, 6
jne 0x14008e229
mov rax, qword [rbx]
mov r8d, ebp
mov rdx, r12
mov rcx, rbx
call qword [rax + 0xb0]
cmp ebp, 7
jne 0x14008e23f
mov rax, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x50]
jmp 0x14008e311
cmp ebp, 2
jne 0x14008e2f6
cmp dword [rbx + 0x3b4], esi
je 0x14008e311
cmp dword [rbx + 0x44], esi
jle 0x14008e2d0
xor r13d, r13d
nop
mov rax, qword [rbx + 0x48]
lea r9, [rsp + 0x40]
movsxd rcx, dword [r13 + rax]
mov rax, qword [rbx + 0x3a8]
lea rdx, [rcx + rcx*2]
or rcx, 0xffffffffffffffff
mov rdx, qword [rax + rdx*8 + 0x10]
xor eax, eax
mov rdi, rdx
mov qword [rsp + 0x20], rax
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x44]
lea rdx, [0x1400a8fb8]
mov r8d, 2
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
add esi, r15d
add r13, 4
cmp esi, dword [rbx + 0x44]
jl 0x14008e260
lea r9, [rsp + 0x44]
lea rdx, [0x1400a8fb0]
mov r8d, 4
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14008e311
cmp ebp, 4
jne 0x14008e311
cmp dword [rbx + 0x3b4], esi
je 0x14008e311
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call fcn.14008cc00
mov rcx, qword [rbx + 0x310]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
test eax, eax
mov r13, rax
jle 0x14008e436
mov r14d, dword [rsp + 0xd0]
nop
mov rcx, qword [rbx + 0x310]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x104b
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x50], 0
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14008e422
mov rax, qword [rbx]
mov rdi, qword [rsp + 0x70]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rax]
mov eax, dword [rbx + 8]
imul eax, edi
movsxd rdi, eax
add rdi, rcx
cmp dword [rbx + 0x3b0], 0
je 0x14008e3c6
mov rcx, qword [rbx + 0x310]
movsxd r8, esi
mov edx, 0x102c
mov r9d, 0xf000
call qword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xc
sub eax, r15d
jmp 0x14008e3ea
mov rcx, qword [rbx + 0x310]
movsxd r8, esi
mov edx, 0x102c
mov r9d, 2
call qword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
test r14d, r14d
je 0x14008e3f3
test eax, eax
je 0x14008e422
mov rax, qword [rbx]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0xe8]
test eax, eax
je 0x14008e422
mov rax, qword [rbx]
mov r9d, ebp
mov r8, rdi
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x100]
test eax, eax
je 0x14008e48d
add esi, r15d
cmp esi, r13d
jl 0x14008e340
mov r14, qword [rsp + 0xb8]
cmp ebp, 5
mov r13, qword [rsp + 0xb0]
je 0x14008e448
cmp ebp, 6
jne 0x14008e45a
mov rax, qword [rbx]
mov r8d, ebp
mov rdx, r12
mov rcx, rbx
call qword [rax + 0xa8]
cmp ebp, 7
jne 0x14008e46b
mov rax, qword [rbx]
mov rdx, r12
mov rcx, rbx
call qword [rax + 0x58]
cmp word [r14], 0
je 0x14008e47b
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400c16d0]
call qword [sym.imp.USER32.dll_SetCursor]
mov eax, r15d
jmp 0x14008e49c
mov r14, qword [rsp + 0xb8]
xor r15d, r15d
jmp 0x14008e436
mov eax, esi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret