Function at 0x140013238
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, 0x30
mov rbp, rcx
mov rcx, qword [rcx + 0x6d8]
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov r12d, r15d
call fcn.140003a48
mov rax, qword [rbp + 0x700]
mov qword [rbp + 0x210], r15
mov ecx, dword [rax + 0x48]
lea r14d, [r15 + 1]
sub ecx, r14d
mov esi, r15d
mov r13d, r15d
cmp ecx, r15d
mov edi, r15d
jle 0x14001361d
mov rcx, qword [rbp + 0x700]
mov edx, edi
call fcn.14000a770
lea rcx, str._stext
mov rdx, rax
mov rbx, rax
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x1400132c8
mov esi, r14d
jmp 0x14001336b
lea rcx, str._shtml
mov rdx, rbx
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x1400132e6
mov esi, 5
jmp 0x14001336b
lea rcx, str._sverhtml
mov rdx, rbx
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x140013301
mov esi, 6
jmp 0x14001336b
lea rcx, str._sxml
mov rdx, rbx
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x14001331c
mov esi, 7
jmp 0x14001336b
lea rcx, str._stab
mov rdx, rbx
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x140013337
mov esi, 2
jmp 0x14001336b
lea rcx, str._stabular
mov rdx, rbx
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x140013352
mov esi, 3
jmp 0x14001336b
lea rcx, str._scomma
mov rdx, rbx
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x14001336f
mov esi, 4
lea r13d, [rdi + 1]
mov rax, qword [rbp + 0x700]
add edi, r14d
mov ecx, dword [rax + 0x48]
sub ecx, r14d
cmp edi, ecx
jl 0x14001329b
cmp esi, r15d
jbe 0x14001361d
xor edx, edx
mov rcx, rbp
call fcn.140011414
mov rax, qword [rbp + 0x700]
mov ebx, r15d
cmp dword [rax + 0x48], r15d
jle 0x14001340b
mov rcx, qword [rbp + 0x700]
mov edx, ebx
call fcn.14000a770
lea rcx, str._sort
mov rdx, rax
call sub.msvcrt.dll__wcsicmp
cmp eax, r15d
jne 0x1400133fc
mov rcx, qword [rbp + 0x700]
lea edx, [rbx + 1]
call fcn.14000a770
mov rcx, qword [rbp + 0x6d8]
cmp word [rax], 0x7e
jne 0x1400133f1
lea rdx, [rax + 2]
mov r8d, r14d
jmp 0x1400133f7
xor r8d, r8d
mov rdx, rax
call fcn.14000e588
mov rax, qword [rbp + 0x700]
add ebx, r14d
cmp ebx, dword [rax + 0x48]
jl 0x1400133aa
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov qword [0x14001c3a0], rax
mov rax, qword [rbp + 0x6d8]
mov dword [rax + 0x50], r15d
mov rcx, qword [rbp + 0x6d8]
mov rax, qword [rcx]
call qword [rax + 0xc8]
mov rcx, qword [rbp + 0x700]
lea rdx, str._nosort
or r8d, 0xffffffff
call fcn.14000a79c
cmp eax, 0xffffffff
jne 0x1400134b8
cmp dword [0x14001cfc4], r15d
mov r12, qword [rbp + 0x6d8]
jne 0x140013484
mov eax, dword [r12 + 0x340]
mov dword [0x14001cfc4], r14d
mov dword [0x14001d580], eax
mov rax, qword [r12]
movsxd rbx, dword [r12 + 0x50]
mov rcx, r12
call qword [rax + 0xd0]
xor edx, edx
mov rcx, r12
movsxd rdi, eax
call fcn.14000bcc4
lea r9, [0x14000e53c]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_qsort
mov rcx, qword [0x14001c3a0]
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbp + 0x700]
mov edx, r13d
call fcn.14000a770
mov rdi, qword [rbp + 0x6d8]
mov rcx, rdi
mov rbx, rax
call fcn.14000c160
xor edx, edx
mov rcx, rbx
call fcn.140008f20
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x14001360c
cmp esi, 4
je 0x140013527
lea r9, [rsp + 0x60]
lea rdx, [0x1400189d0]
mov r8d, 2
mov rcx, rax
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x20], r15
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 esi, 5
mov qword [0x14001c3a0], rax
je 0x14001354e
cmp esi, 6
jne 0x140013560
mov rax, qword [rdi]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0xb0]
cmp esi, 7
jne 0x140013571
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x50]
cmp dword [rdi + 0x50], r15d
mov r12d, r15d
jle 0x1400135c7
mov edx, r12d
mov rcx, rdi
call fcn.14000bcc4
mov rcx, rdi
mov r13, rax
mov rax, qword [rdi]
mov rdx, r13
call qword [rax + 0x60]
cmp eax, r15d
je 0x1400135b3
mov rax, qword [rdi]
mov r9d, esi
mov r8, r13
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x100]
cmp eax, r15d
je 0x1400135be
add r12d, r14d
cmp r12d, dword [rdi + 0x50]
jge 0x1400135c7
jmp 0x14001357a
xor edx, edx
xor ecx, ecx
call fcn.140008fc4
cmp esi, 5
je 0x1400135d1
cmp esi, 6
jne 0x1400135e3
mov rax, qword [rdi]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0xa8]
cmp esi, 7
jne 0x1400135f4
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001c3a0]
call qword [sym.imp.USER32.dll_SetCursor]
jmp 0x140013615
xor edx, edx
xor ecx, ecx
call fcn.140008fc4
mov r12d, r14d
jmp 0x140013708
mov rcx, qword [rbp + 0x700]
lea rdx, str._ChangeTimeAttr
or r8d, 0xffffffff
call fcn.14000a79c
cmp eax, r15d
mov r11d, eax
jl 0x14001373a
mov rcx, qword [rbp + 0x700]
lea edx, [rax + 1]
call fcn.14000a770
lea edx, [r11 + 2]
mov r13, rax
call fcn.14000a770
lea edx, [r11 + 3]
mov rsi, rax
call fcn.14000a770
lea edx, [r11 + 4]
mov rbx, rax
call fcn.14000a770
cmp word [r13], r15w
mov r14, rax
je 0x14001373a
cmp word [rsi], r15w
je 0x14001373a
cmp word [rbx], r15w
je 0x14001373a
xor edx, edx
mov rcx, rbp
call fcn.140011414
mov rcx, rbx
call sub.msvcrt.dll__wtoi
mov rcx, r14
mov edi, eax
call sub.msvcrt.dll__wtoi
mov rcx, rbp
mov ebx, eax
call fcn.14000f384
mov rcx, qword [rbp + 0x6d0]
mov r9d, ebx
mov r8, rsi
mov rdx, r13
add rcx, 0x22c
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.1400046ec
mov rcx, qword [0x14001c358]
mov dword [0x14001c350], r15d
cmp rcx, 0xffffffffffffffff
je 0x140013702
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x14001c358], 0xffffffffffffffff
mov r12d, 1
mov rbx, qword [rbp + 0x6d8]
cmp rbx, r15
je 0x14001373a
lea rax, [0x140018190]
lea rcx, [rbx + 0x368]
mov qword [rbx], rax
call fcn.14000a06c
mov rcx, rbx
call fcn.14000bd80
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, r12d
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret