Function at 0x1401f7f60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x8f0], rbx
mov rsi, r8
mov rbp, rdx
mov r13, rcx
lea r14, vtable.CSABUnicodeString.0
mov qword [rsp + 0x40], r14
xor r12d, r12d
mov qword [rsp + 0x58], r12
lea ecx, [r12 + 2]
call fcn.140247068
mov r15, rax
mov qword [rsp + 0x48], rax
mov edi, 1
mov ebx, edi
mov qword [rsp + 0x50], rbx
mov word [rax], r12w
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x80], r12
lea ecx, [rdi + 1]
call fcn.140247068
mov r12, rax
mov qword [rsp + 0x70], rax
mov eax, edi
mov qword [rsp + 0x8f8], rax
mov qword [rsp + 0x78], rax
xor edi, edi
mov word [r12], di
lea rcx, [rax - 2]
test rbp, rbp
je 0x1401f800b
mov rdi, rcx
inc rdi
cmp byte [rdi + rbp], 0
jne 0x1401f8002
lea r14, [rdi + 1]
cmp r14, 1
jbe 0x1401f8050
mov eax, 2
mul r14
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov rbx, rax
movzx eax, word [r15]
mov word [rbx], ax
mov edx, 2
mov rcx, r15
call fcn.140247060
mov r15, rbx
mov qword [rsp + 0x48], rbx
mov rbx, r14
mov qword [rsp + 0x50], rbx
test rdi, rdi
je 0x1401f806e
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r15
mov r9d, edi
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r14d, r14d
mov word [r15 + rdi*2], r14w
mov qword [rsp + 0x58], rdi
lea rcx, [r14 - 1]
test rsi, rsi
jne 0x1401f8089
mov edi, r14d
jmp 0x1401f8099
mov rdi, rcx
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], r14b
jne 0x1401f8090
lea rbp, [rdi + 1]
cmp rbp, 1
jbe 0x1401f80d7
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov rbx, rax
movzx eax, word [r12]
mov word [rbx], ax
mov edx, 2
mov rcx, r12
call fcn.140247060
mov r12, rbx
mov rax, rbp
jmp 0x1401f80df
mov rax, qword [rsp + 0x8f8]
test rdi, rdi
je 0x1401f80fd
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, edi
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [r12 + rdi*2], r14w
mov r8, r15
mov edx, 0x410
lea rcx, [rsp + 0x90]
call fcn.140251ec0
mov rdx, r12
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [0x1402b6c38]
mov edx, 0x410
lea rcx, [rsp + 0x90]
call fcn.140251e40
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401f81ee
mov bl, 1
lea eax, [rbx - 1]
cmp al, 0x2f
ja 0x1401f81d7
movzx ecx, bl
mov rax, qword [r13]
mov edx, dword [rax + rcx*4]
cmp edx, 0xffffffff
je 0x1401f81d7
mov byte [rsp + 0x8f8], bl
mov byte [rsp + 0x8f9], dl
movzx eax, dx
shr ax, 8
mov byte [rsp + 0x8fa], al
shr edx, 0x10
mov byte [rsp + 0x8fb], dl
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x900]
mov r8d, 4
lea rdx, [rsp + 0x8f8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc bl
cmp bl, 0x31
jb 0x1401f8177
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x1401f81f1
mov ebx, r14d
mov edx, 2
mov rcx, r12
call fcn.140247060
nop
mov edx, 2
mov rcx, r15
call fcn.140247060
mov eax, ebx
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret