Function at 0x1400014f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rbx, rdx
mov r14d, ecx
call fcn.14000b280
cmp r14d, 2
jl 0x1400016a5
mov al, 1
mov dword [rbp], eax
mov r15d, 1
xor r13d, r13d
xor esi, esi
mov dword [rbp + 4], 0
xor eax, eax
mov qword [rbp - 0x28], rax
xor eax, eax
mov qword [rbp - 0x20], rax
xor r12d, r12d
mov al, 1
mov dword [rbp - 4], eax
jmp 0x140001568
test r13, r13
mov r13, rdi
jne 0x1400017da
inc r15d
cmp r15d, r14d
jge 0x140001766
movsxd rax, r15d
mov rdi, qword [rbx + rax*8]
cmp byte [rdi], 0x2d
jne 0x140001550
movzx eax, byte [rdi + 1]
cmp eax, 0x67
jg 0x14000163b
test eax, eax
je 0x140001550
cmp eax, 0x2d
jne 0x1400018b3
mov rcx, rdi
lea rdx, str.__no_color
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001665
mov rcx, rdi
lea rdx, str.__color
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000166f
mov rcx, rdi
lea rdx, str.__comment
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000167b
mov rcx, rdi
lea rdx, str.__no_indent
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001686
mov rcx, rdi
lea rdx, str.__offsets
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001692
mov rcx, rdi
lea rdx, str.__no_header
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000169a
mov rcx, rdi
lea rdx, str.__raw_id
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14000188d
mov dword [rbp], 0
jmp 0x14000155c
cmp eax, 0x6f
jne 0x140001859
test rsi, rsi
jne 0x1400018b3
inc r15d
cmp r15d, r14d
jge 0x1400018b3
movsxd rax, r15d
mov rsi, qword [rbx + rax*8]
jmp 0x14000155c
mov al, 1
mov dword [rbp + 4], eax
jmp 0x14000155c
mov dword [rbp + 4], 0
jmp 0x14000155c
mov al, 1
mov qword [rbp - 0x28], rax
jmp 0x14000155c
mov dword [rbp - 4], 0
jmp 0x14000155c
mov r12b, 1
jmp 0x14000155c
mov al, 1
mov qword [rbp - 0x20], rax
jmp 0x14000155c
mov edi, 6
mov ebx, 0x49
xor r13d, r13d
xor esi, esi
or ebx, edi
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
lea rdx, [rbp - 0x40]
mov rcx, r13
call fcn.140001900
mov edi, 1
test al, al
je 0x140001834
xor eax, eax
test bl, 2
mov qword [rbp - 0x10], 0
lea rdi, [rbp - 0x10]
cmovne rdi, rax
mov qword [rbp - 0x18], 0
mov ecx, 0x16
call fcn.140005230
mov r14, rax
mov rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x38]
sub r8, rdx
sar r8, 2
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov r9d, ebx
call fcn.140003e00
mov edi, eax
mov rcx, r14
call fcn.1400052b0
test edi, edi
je 0x140001806
mov rcx, qword [rbp - 0x18]
call fcn.140005460
mov rcx, qword [rbp - 0x18]
call fcn.140005420
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x14000183d
jmp 0x140001846
movzx eax, byte [rbp - 4]
and eax, 1
shl r12b, 4
and r12b, 0x10
movzx ecx, r12b
lea eax, [rcx + rax*8]
mov rcx, qword [rbp - 0x20]
shl cl, 5
and cl, 0x20
movzx ecx, cl
or ecx, eax
mov eax, dword [rbp]
shl al, 6
movzx eax, al
or eax, ecx
mov rcx, qword [rbp - 0x28]
shl cl, 7
movzx ebx, cl
or ebx, eax
or ebx, 1
xor eax, eax
test byte [rbp + 4], 1
sete al
lea edi, [rax*4 + 2]
test rsi, rsi
je 0x1400016b2
lea rcx, [0x14009e090]
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400016b6
jmp 0x1400016b4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str.error:_More_than_one_input_file_specified_n
mov edx, 0x2a
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov edi, 1
jmp 0x140001846
test bl, 2
jne 0x140001829
mov rax, qword [rbp - 0x10]
mov r8, qword [rax]
mov r9, qword [rax + 8]
lea rdx, [0x14009e092]
mov rcx, rsi
call fcn.140001a30
test al, al
je 0x140001874
mov rcx, qword [rbp - 0x10]
call fcn.140008670
xor edi, edi
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140001846
mov qword [rbp - 0x38], rcx
call fcn.14000b020
mov eax, edi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp eax, 0x68
jne 0x1400018b3
mov rdx, qword [rbx]
lea rcx, str._s___Disassemble_a_SPIR_V_binary_module_n_nUsage:__s__options____filename___n_nThe_SPIR_V_binary_is_read_from__filename_._If_no_file_is_specified__nor_if_the_filename_is______then_the_binary_is_read_from_standard_input._n_nOptions:_n_n___h____help______Print_this_help._n____version_______Display_disassembler_version_information._n_n___o__filename____Set_the_output_filename._n__________________Output_goes_to_standard_output_if_this_option_is_n__________________not_specified__or_if_the_filename_is____._n_n____color_________Force_color_output.__The_default_when_printing_to_a_terminal._n__________________Overrides_a_previous___no_color_option._n____no_color______Dont_print_in_color.__Overrides_a_previous___color_option._n__________________The_default_when_output_goes_to_something_other_than_a_n__________________terminal__e.g._a_file__a_pipe__or_a_shell_redirection_._n_n____no_indent_____Dont_indent_instructions._n_n____no_header_____Dont_output_the_header_as_leading_comments._n_n____raw_id________Show_raw_Id_values_instead_of_friendly_names._n_n____offsets_______Show_byte_offsets_for_each_instruction._n_n____comment_______Add_comments_to_make_reading_easier_n
mov r8, rdx
call fcn.14000c040
xor edi, edi
jmp 0x140001846
mov rcx, qword [rbp - 0x10]
call fcn.140008670
mov edi, 1
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x14000183d
jmp 0x140001846
lea rdx, str.__help
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000185e
lea rdx, str.__version
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400018cf
mov rdx, qword [rbx]
lea rcx, str._s___Disassemble_a_SPIR_V_binary_module_n_nUsage:__s__options____filename___n_nThe_SPIR_V_binary_is_read_from__filename_._If_no_file_is_specified__nor_if_the_filename_is______then_the_binary_is_read_from_standard_input._n_nOptions:_n_n___h____help______Print_this_help._n____version_______Display_disassembler_version_information._n_n___o__filename____Set_the_output_filename._n__________________Output_goes_to_standard_output_if_this_option_is_n__________________not_specified__or_if_the_filename_is____._n_n____color_________Force_color_output.__The_default_when_printing_to_a_terminal._n__________________Overrides_a_previous___no_color_option._n____no_color______Dont_print_in_color.__Overrides_a_previous___color_option._n__________________The_default_when_output_goes_to_something_other_than_a_n__________________terminal__e.g._a_file__a_pipe__or_a_shell_redirection_._n_n____no_indent_____Dont_indent_instructions._n_n____no_header_____Dont_output_the_header_as_leading_comments._n_n____raw_id________Show_raw_Id_values_instead_of_friendly_names._n_n____offsets_______Show_byte_offsets_for_each_instruction._n_n____comment_______Add_comments_to_make_reading_easier_n
mov r8, rdx
call fcn.14000c040
mov edi, 1
jmp 0x140001846
call fcn.140005d60
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov ecx, 0x16
call fcn.140005d70
lea rcx, str.Target:__s_n
mov rdx, rax
call fcn.14000c040
xor edi, edi
jmp 0x140001846