Function at 0x14017d9c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rdi, qword [0x14022c040]
mov esi, dword [rsp + 0x110]
mov rax, qword [rdi]
mov qword [rsp + 0x98], rax
xor eax, eax
mov qword [rsp + 0x60], rcx
mov rbp, rdx
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x68], r9d
test esi, esi
je 0x14017e1d8
mov ecx, 2
call qword [fcn.1401de8b0]
mov rbx, rax
mov rdi, qword [str.PF__]
lea r12, str.usage:__s
mov qword [rsp + 0x38], 7
mov eax, dword [rdi]
test eax, eax
jne 0x14017e1eb
lea rax, str.___or:__s
lea r15, [0x14021cdc8]
mov qword [rsp + 0x50], rax
test rbp, rbp
je 0x14017dce0
mov rcx, qword [rsp + 0x60]
xor esi, 1
test rcx, rcx
setne al
and al, sil
mov byte [rsp + 0x6f], al
jne 0x14017e187
mov rdx, qword [rbp]
lea rax, [rsp + 0x70]
xor esi, esi
lea r13, str._____s
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x14017dd0c
add rbp, 8
cmp byte [rdx], 0
je 0x14017dbae
nop dword [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x14017dab1
mov rcx, rdx
call fcn.1401d81b8
mov rdx, rax
mov qword [rsp + 0x90], 0
pxor xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x88], 1
test esi, esi
jne 0x14017dae3
xor esi, esi
cmp byte [rdx], 0
sete sil
mov rcx, qword [rsp + 0x40]
mov r9d, 0xffffffff
mov r8d, 0xa
xor r14d, r14d
call fcn.140093b10
xor eax, eax
cmp qword [rsp + 0x78], 0
jne 0x14017db4a
jmp 0x14017db83
cmp byte [r8], 0
je 0x14017db68
mov eax, dword [rdi]
mov rdx, r13
test eax, eax
je 0x14017db34
mov rcx, r13
mov qword [rsp + 0x48], r8
call fcn.1401d81b8
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, rbx
call fcn.140091730
lea eax, [r14 + 1]
mov r14, rax
cmp rax, qword [rsp + 0x78]
jae 0x14017db83
shl rax, 4
add rax, qword [rsp + 0x70]
mov r8, qword [rax]
test esi, esi
jne 0x14017db10
test r14d, r14d
jne 0x14017dbc0
mov rdx, r12
jmp 0x14017db34
mov rdx, rbx
mov ecx, 0xa
call sub.msvcrt.dll_fputc
lea eax, [r14 + 1]
mov r14, rax
cmp rax, qword [rsp + 0x78]
jb 0x14017db4a
mov rcx, qword [rsp + 0x40]
xor edx, edx
call fcn.1400936c0
mov rdx, qword [rbp]
test rdx, rdx
je 0x14017dd0c
add rbp, 8
cmp byte [rdx], 0
mov r12, qword [rsp + 0x50]
jne 0x14017daa0
lea rdx, [0x14021c893]
jmp 0x14017dab1
mov qword [rsp + 0x20], r8
mov r8d, dword [rsp + 0x38]
mov rdx, r15
mov rcx, rbx
lea r9, [0x14021c893]
call fcn.140091730
jmp 0x14017db3c
mov rsi, qword [rsp + 0x38]
mov rdx, rbx
mov ecx, 0xa
call sub.msvcrt.dll_fputc
test rsi, rsi
je 0x14017dcb9
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x14017dc44
mov rbp, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x14017dc39
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14017dcb9
mov edx, dword [rbp + 0x58]
add rbp, 0x58
test edx, edx
jne 0x14017dc20
lea rdx, [0x14021ce48]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
mov r8, rsi
lea rdx, [0x14021ce57]
mov rcx, rbx
movsxd rbp, eax
call sub.libintl_8.dll_libintl_fprintf
lea r9, [0x14021c893]
mov r8d, 0x1a
cdqe
add rax, rbp
cmp rax, 0x19
ja 0x14017e25c
sub r8d, eax
lea rdx, [0x14021ce64]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
mov eax, dword [rdi]
lea rdx, str.opposite_of___no__s
test eax, eax
je 0x14017dcae
mov rcx, rdx
call fcn.1401d81b8
mov rdx, rax
mov r8, rsi
mov rcx, rbx
call fcn.140091730
xor edx, edx
mov eax, dword [r12 + 0x58]
add r12, 0x58
test eax, eax
jne 0x14017dd30
mov rdx, rbx
mov ecx, 0xa
call sub.msvcrt.dll_fputc
cmp byte [rsp + 0x6f], 0
jne 0x14017e133
mov rdi, qword [0x14022c040]
mov rax, qword [rsp + 0x98]
sub rax, qword [rdi]
jne 0x14017e292
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x68]
mov edx, 1
mov eax, dword [r12]
test eax, eax
je 0x14017dcc8
nop word cs:[rax + rax]
nop
cmp eax, 4
je 0x14017dcbb
cmp eax, 1
je 0x14017e092
test r13d, r13d
jne 0x14017dd4f
test byte [r12 + 0x28], 8
jne 0x14017dcbb
test edx, edx
jne 0x14017dfd9
lea rdx, [0x14021ce48]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
mov r8d, dword [r12 + 4]
movsxd r15, eax
test r8d, r8d
je 0x14017df99
test byte [r12 + 0x28], 0x20
je 0x14017e079
lea rdx, [0x14021ce4d]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
cdqe
add r15, rax
mov rsi, qword [r12 + 8]
test rsi, rsi
je 0x14017ddf2
mov ebp, dword [r12 + 4]
test ebp, ebp
je 0x14017e23c
lea rdx, [0x14021ce54]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
mov r8, qword [r12 + 8]
cdqe
add r15, rax
test r8, r8
je 0x14017dfa7
xor esi, esi
test byte [r12 + 0x28], 4
je 0x14017dfeb
lea rdx, [0x14021ce57]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
cdqe
add r15, rax
cmp dword [r12], 2
je 0x14017dfb4
mov eax, dword [r12 + 0x28]
mov edx, eax
and edx, 0x42
cmp edx, 2
je 0x14017deb9
mov r8d, eax
mov rbp, qword [r12 + 0x18]
and r8d, 1
test al, 0x40
jne 0x14017de70
test rbp, rbp
je 0x14017e244
lea rdx, str.______
mov rcx, rbp
mov dword [rsp + 0x38], r8d
call sub.msvcrt.dll_strpbrk
mov r8d, dword [rsp + 0x38]
test rax, rax
je 0x14017e1a5
lea r14, [0x14021cdef]
test r8d, r8d
je 0x14017de89
cmp qword [r12 + 8], 0
lea r14, str.__s_
jne 0x14017de89
lea r14, [0x14021cde4]
jmp 0x14017de89
lea r14, [0x14021cdef]
test r8d, r8d
jne 0x14017e0e3
test rbp, rbp
je 0x14017e250
cmp byte [rbp], 0
je 0x14017e0d7
mov r10d, dword [rdi]
test r10d, r10d
je 0x14017dea6
mov rcx, rbp
call fcn.1401d81b8
mov rbp, rax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.1400b7e30
cdqe
add r15, rax
cmp dword [r12], 3
je 0x14017e033
mov rbp, qword [r12 + 0x20]
test rbp, rbp
je 0x14017dbed
movzx eax, byte [rbp]
test al, al
je 0x14017dbed
mov r8d, dword [rdi]
test r8d, r8d
je 0x14017defc
mov rcx, rbp
call fcn.1401d81b8
mov rbp, rax
movzx eax, byte [rax]
test al, al
je 0x14017dbed
mov qword [rsp + 0x38], rsi
lea r14, [0x14021ce64]
mov rdx, r15
mov rsi, rbp
nop
mov rbp, rsi
jmp 0x14017df2c
movzx eax, byte [rbp + 1]
add rbp, 1
test al, al
je 0x14017df34
cmp al, 0xa
jne 0x14017df20
add rbp, 1
mov r15, rbp
lea r9, [0x14021c893]
mov r8d, 0x1a
sub r15, rsi
cmp rdx, 0x19
ja 0x14017df88
sub r8d, edx
mov rcx, rbx
mov rdx, r14
call sub.libintl_8.dll_libintl_fprintf
mov edx, 1
mov r9, rbx
mov r8, r15
mov rcx, rsi
call sub.msvcrt.dll_fwrite
movzx eax, byte [rbp]
xor edx, edx
test al, al
je 0x14017dbe8
mov rsi, rbp
jmp 0x14017df10
lea rdx, [0x14021ce68]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
jmp 0x14017df5b
mov r8, qword [r12 + 8]
test r8, r8
jne 0x14017ddd0
xor esi, esi
cmp dword [r12], 2
jne 0x14017ddfd
mov r11d, dword [rdi]
lea rdx, str._NUM
test r11d, r11d
jne 0x14017e116
mov rcx, rbx
call fcn.1400b7e30
cdqe
add r15, rax
jmp 0x14017ddfd
mov rdx, rbx
mov ecx, 0xa
call sub.msvcrt.dll_fputc
jmp 0x14017dd57
mov rsi, r8
lea rax, [0x14021c7f0]
nop word cs:[rax + rax]
movzx edx, byte [rax]
test dl, dl
je 0x14017ddde
add rsi, 1
add rax, 1
cmp dl, byte [rsi - 1]
je 0x14017e000
lea rdx, str.___no___s
mov rcx, rbx
xor esi, esi
call sub.libintl_8.dll_libintl_fprintf
cdqe
add r15, rax
jmp 0x14017ddf2
lea r9, [0x14021c893]
mov r8d, 0x1a
cmp r15, 0x19
ja 0x14017e102
sub r8d, r15d
lea rdx, [0x14021ce64]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
mov r9d, dword [rdi]
mov rsi, qword [r12 + 0x10]
lea rdx, str.alias_of____s
test r9d, r9d
je 0x14017dcae
jmp 0x14017dca3
lea rdx, [0x14021ce50]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
cdqe
add r15, rax
jmp 0x14017dd97
mov rdx, rbx
mov ecx, 0xa
call sub.msvcrt.dll_fputc
mov r8, qword [r12 + 0x20]
cmp byte [r8], 0
je 0x14017dcb9
mov r14d, dword [rdi]
test r14d, r14d
je 0x14017e0c1
mov rcx, r8
call fcn.1401d81b8
mov r8, rax
lea rdx, [0x14021ce44]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
xor edx, edx
jmp 0x14017dcbb
lea rbp, [0x14021c893]
jmp 0x14017dea6
cmp qword [r12 + 8], 0
lea r14, [0x14021cde4]
je 0x14017de80
lea r14, str.__s_
jmp 0x14017de80
lea rdx, [0x14021ce68]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
jmp 0x14017e05c
mov rcx, rdx
call fcn.1401d81b8
mov rcx, rbx
mov rdx, rax
call fcn.1400b7e30
cdqe
add r15, rax
jmp 0x14017ddfd
mov rax, qword [rsp + 0x60]
test byte [rax + 0x28], 0x40
je 0x14017dce0
mov rdi, qword [0x14022c040]
mov rax, qword [rsp + 0x98]
sub rax, qword [rdi]
jne 0x14017e292
mov r9, rbx
mov r8d, 4
mov edx, 1
lea rcx, str.EOF_n
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fwrite
test byte [rcx + 0x28], 0x40
je 0x14017da6e
lea rdx, str.cat___EOF_n
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
jmp 0x14017da6e
lea r14, [0x14021ce19]
test r8d, r8d
je 0x14017de89
cmp qword [r12 + 8], 0
lea r14, str.___s__
jne 0x14017de89
lea r14, [0x14021ce1f]
jmp 0x14017de89
mov ecx, 1
call qword [fcn.1401de8b0]
mov rbx, rax
jmp 0x14017da16
mov rcx, r12
call fcn.1401d81b8
mov rcx, rax
mov r12, rax
call sub.msvcrt.dll_strlen
sub rax, 2
mov qword [rsp + 0x38], rax
mov eax, dword [rdi]
test eax, eax
je 0x14017da37
lea rcx, str.___or:__s
call fcn.1401d81b8
mov qword [rsp + 0x50], rax
mov eax, dword [rdi]
test eax, eax
je 0x14017e297
lea rcx, [0x14021cdc8]
call fcn.1401d81b8
mov r15, rax
jmp 0x14017da4a
mov r8, rsi
jmp 0x14017ddd0
lea r14, [0x14021cdef]
test r8d, r8d
jne 0x14017e270
lea rbp, [0x14021cdf3]
jmp 0x14017de93
lea rdx, [0x14021ce68]
mov rcx, rbx
call sub.libintl_8.dll_libintl_fprintf
jmp 0x14017dc96
cmp qword [r12 + 8], 0
lea r14, [0x14021cde4]
je 0x14017e250
lea r14, str.__s_
lea rbp, [0x14021cdf3]
jmp 0x14017de93
call fcn.1401d96b0
lea r15, [0x14021cdc8]
jmp 0x14017da4a