Function at 0x1401644f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rsi, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xd8]
test rsi, rsi
lea rax, [rsi + 0x3c]
mov dword [rsp + 0x34], edx
lea rdx, [rdi + 0x3c]
mov rbx, rcx
mov r12, r8
cmove rax, rdx
mov ecx, dword [rcx + 0xfc]
xor edx, edx
mov rbp, r9
mov qword [rsp + 0x40], rax
call fcn.14010a630
mov ecx, dword [rbx + 0xfc]
mov edx, 4
mov qword [rsp + 0x38], rax
call fcn.14010a630
mov ecx, dword [rbx + 0xfc]
mov edx, 5
mov qword [rsp + 0x48], rax
call fcn.14010a630
mov ecx, dword [rbx + 0xfc]
mov edx, 6
mov qword [rsp + 0x58], rax
call fcn.14010a630
mov r14d, dword [rbx + 0x13c]
mov qword [rsp + 0x50], rax
test r14d, r14d
jns 0x140164598
mov rax, qword [0x140207780]
mov r14d, dword [rax]
cmp qword [rbp + 8], 0
je 0x1401646a8
mov r13, qword [r12 + 0x10]
test rdi, rdi
je 0x1401646e5
test rsi, rsi
je 0x140164610
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rsi + 0x18]
call sub.msvcrt.dll_strcmp
mov qword [r12 + 8], 0
test eax, eax
jne 0x140164900
mov rax, qword [0x140207c90]
cmp r13, rax
je 0x140164980
mov r15, qword [rsp + 0x50]
mov byte [r13], 0
mov r13d, 0x3d
mov rcx, r15
call sub.msvcrt.dll_strlen
mov rdx, r15
mov rcx, r12
mov r8, rax
call fcn.14007e800
jmp 0x140164737
mov qword [r12 + 8], 0
mov rax, qword [0x140207c90]
cmp r13, rax
je 0x1401649c0
mov rsi, qword [rsp + 0x58]
mov byte [r13], 0
mov r13d, 0x3e
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdx, rsi
mov rcx, r12
mov r8, rax
call fcn.14007e800
mov qword [rsp + 0x50], rsi
mov rax, qword [rbp + 0x10]
mov r8d, dword [rsp + 0x34]
mov rcx, r12
lea rdx, str._s:___s
lea r9, [0x1401f6a48]
mov qword [rsp + 0x20], rax
call fcn.14007ed40
mov rdx, qword [r12]
mov r15, qword [0x140207cf0]
test rdx, rdx
jne 0x140164787
mov edx, 1
mov rcx, r12
call fcn.14007da40
mov rax, qword [r12 + 8]
jmp 0x140164799
mov r15, qword [0x140207cf0]
mov rdx, qword [rsp + 0x40]
mov r8d, r14d
mov rcx, qword [r15]
call fcn.14002ce30
mov rcx, rax
call sub.msvcrt.dll_strlen
mov edx, 0x2d
mov rcx, rbp
mov r8, rax
call fcn.14007eac0
mov r13, qword [r12 + 0x10]
test rdi, rdi
jne 0x1401645b1
mov qword [r12 + 8], 0
mov rax, qword [0x140207c90]
cmp r13, rax
je 0x140164a00
mov rax, qword [rsp + 0x48]
mov byte [r13], 0
mov r13d, 0x3c
mov qword [rsp + 0x50], rax
mov r15, qword [rsp + 0x48]
mov rcx, r15
call sub.msvcrt.dll_strlen
mov rdx, r15
mov rcx, r12
mov r8, rax
call fcn.14007e800
test rsi, rsi
je 0x140164654
mov r15, qword [0x140207cf0]
lea rdx, [rsi + 0x3c]
mov r8d, r14d
mov rcx, qword [r15]
call fcn.14002ce30
mov r8d, dword [rsp + 0x34]
mov rcx, r12
mov rdx, rax
mov eax, dword [rsi + 0x20]
mov qword [rsp + 0x20], rdx
lea rdx, str._d:___s
lea r9d, [rax + 1]
call fcn.14007ed40
cmp r13b, 0x21
je 0x140164940
mov rdx, qword [r12]
test rdx, rdx
je 0x14016468c
mov rax, qword [r12 + 8]
sub rdx, rax
cmp rdx, 1
je 0x14016468c
mov rdx, qword [r12 + 0x10]
lea rcx, [rax + 1]
mov qword [r12 + 8], rcx
mov byte [rdx + rax], r13b
mov rdx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
mov byte [rdx + rax], 0
cmp r13b, 0x21
je 0x140164960
test rdi, rdi
je 0x1401648d0
mov rcx, qword [r15]
lea rdx, [rdi + 0x3c]
mov r8d, r14d
call fcn.14002ce30
mov r8d, dword [rsp + 0x34]
mov rcx, r12
mov rdx, rax
mov eax, dword [rdi + 0x20]
mov qword [rsp + 0x20], rdx
lea rdx, str.__d:___s
lea r9d, [rax + 1]
call fcn.14007ed40
mov rcx, qword [r15]
mov rdx, qword [rsp + 0x40]
call fcn.1400f55a0
mov rsi, rax
test rax, rax
je 0x140164868
cmp r13b, 0x21
je 0x1401649d8
mov rdx, qword [r12]
test rdx, rdx
je 0x1401648b0
mov rax, qword [r12 + 8]
sub rdx, rax
cmp rdx, 1
je 0x1401648b0
mov rdx, qword [r12 + 0x10]
lea rcx, [rax + 1]
mov r8, r12
mov qword [r12 + 8], rcx
mov ecx, 5
mov byte [rdx + rax], 0x20
mov rdx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
mov byte [rdx + rax], 0
mov rdx, rsi
call fcn.140041d60
mov r8, qword [rsp + 0x38]
mov rcx, r12
lea rdx, [0x1401f6a77]
call fcn.14007ed40
mov rdx, qword [r12 + 8]
mov rcx, qword [r12 + 0x10]
mov r8d, 1
mov r9, qword [rbx + 0x1c0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fwrite
mov edx, 1
mov rcx, r12
call fcn.14007da40
mov rax, qword [r12 + 8]
jmp 0x140164838
mov rax, qword [rbp + 0x10]
mov r8d, dword [rsp + 0x34]
mov rcx, r12
lea r9, [0x1401f6a48]
lea rdx, str.__s:___s
mov qword [rsp + 0x20], rax
call fcn.14007ed40
jmp 0x1401647fe
cmp r13, qword [0x140207c90]
je 0x1401649b0
mov byte [r13], 0
mov r15, qword [rsp + 0x48]
mov r13d, 0x21
mov rcx, r15
call sub.msvcrt.dll_strlen
mov rdx, r15
mov rcx, r12
mov r8, rax
call fcn.14007e800
jmp 0x140164737
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
lea rdx, [0x1401f6a5e]
mov rcx, r12
call fcn.14007ed40
jmp 0x14016477a
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x38]
lea rdx, [0x1401f6a5e]
mov rcx, r12
call fcn.14007ed40
jmp 0x1401647c3
mov rcx, qword [rsp + 0x50]
mov r13d, 0x3d
mov qword [rsp + 0x48], rcx
cmp byte [rax], 0
je 0x140164a10
mov r8d, 0xac
lea rdx, [0x1401f6989]
lea rcx, [0x1401f6992]
call qword [sym.imp.msvcrt.dll__assert]
nop
cmp byte [r13], 0
je 0x140164912
jmp 0x140164995
mov rcx, qword [rsp + 0x58]
mov r13d, 0x3e
mov qword [rsp + 0x48], rcx
jmp 0x140164990
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
lea rdx, [0x1401f6a5e]
mov rcx, r12
call fcn.14007ed40
jmp 0x14016481d
mov r13d, 0x3c
jmp 0x140164990
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
jmp 0x140164713