Function at 0x14001b680
Capabilities:
Allocate or change rwx memory

Disassembly:
lea rcx, [0x140011440]
jmp fcn.14000168c
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov esi, ecx
mov rbp, rdx
call fcn.140014b40
lea rcx, str.GCC_EXEC_PREFIX
mov rbx, qword [rbp]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x14001b212
xor r8d, r8d
lea rdx, str.gcc_ranlib
mov rcx, rax
call fcn.1400119f0
mov rbx, rax
lea rdi, str.D:_a_msys64_ucrt64_bin_
lea r8, str.D:_a_msys64_ucrt64_lib_gcc_
mov rcx, rbx
mov rdx, rdi
call fcn.1400123c0
mov qword [0x140021070], rax
test rax, rax
je 0x14001b62a
lea r8, [0x14001d160]
mov rdx, rdi
mov rcx, rbx
call fcn.1400123c0
mov qword [0x140021068], rax
test rax, rax
je 0x14001b617
lea r12, str.x86_64_w64_mingw32
xor r9d, r9d
lea r8, [0x14001d12f]
mov rdx, r12
lea rcx, str..._.._.._.._
lea rbx, [0x14001d12f]
call fcn.1400119f0
mov qword [rsp + 0x20], rbx
mov rdx, r12
mov r8, rbx
mov qword [rsp + 0x30], 0
mov rcx, qword [0x140021070]
lea r9, str.12.2.0
lea rdi, [0x140021050]
mov qword [rsp + 0x28], rax
call fcn.1400119f0
xor r8d, r8d
lea rdx, [0x14001d051]
mov rcx, rax
call fcn.1400119f0
mov rdx, rdi
mov rcx, rax
call fcn.140011740
mov qword [rsp + 0x20], rbx
mov rdx, r12
mov r8, rbx
mov qword [rsp + 0x28], 0
mov rcx, qword [0x140021068]
lea r9, str.12.2.0
lea r12, [0x140021030]
call fcn.1400119f0
mov rdx, rdi
mov rcx, rax
mov qword [0x140021068], rax
call fcn.140011740
mov rdx, r12
lea rcx, [0x14001d055]
call fcn.140011890
test esi, esi
jle 0x14001b3d6
mov rcx, rbp
movsxd rdx, esi
xor eax, eax
jmp 0x14001b349
add rax, 1
add rcx, 8
cmp rax, rdx
je 0x14001b3d6
mov rbx, qword [rcx]
cmp byte [rbx], 0x2d
jne 0x14001b338
cmp byte [rbx + 1], 0x42
jne 0x14001b338
lea r8d, [rsi + 1]
lea r14, [rbp + rax*8 + 8]
mov r13d, eax
sub r8d, eax
mov rdx, r14
movsxd r8, r8d
shl r8, 3
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
cmp byte [rbx + 2], 0
mov rcx, rax
je 0x14001b5ae
add rbx, 2
sub esi, 1
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
je 0x14001b3c0
lea rax, [rbx + rax - 1]
cmp rbx, rax
jae 0x14001b3c0
movzx eax, byte [rax]
cmp al, 0x2f
je 0x14001b3c0
cmp al, 0x5c
je 0x14001b3c0
mov rcx, rbx
xor r8d, r8d
lea rdx, [0x14001d12d]
call fcn.1400119f0
mov rbx, rax
mov rdx, rbx
mov rcx, r12
call fcn.140011730
mov rdx, rbx
mov rcx, rdi
call fcn.140011730
lea rbx, str.liblto_plugin.dll
mov r8d, 4
mov rcx, rdi
mov rdx, rbx
call fcn.140011460
mov r13, rax
test rax, rax
je 0x14001b5e9
lea rbx, str.ranlib
mov rcx, rdi
mov r8d, 1
mov rdx, rbx
call fcn.140011460
mov rdi, rax
test rax, rax
je 0x14001b563
lea ecx, [rsi + 4]
mov edx, 8
movsxd rcx, ecx
call fcn.1400136f0
mov qword [rax], rdi
mov rbx, rax
lea rax, str.__plugin
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r13
cmp esi, 1
jle 0x14001b5df
lea eax, [rsi - 1]
lea rcx, [rbx + 0x18]
lea rdx, [rbp + 8]
lea r8, [rax*8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esi, 2
xor r8d, r8d
lea rcx, str.gcc_
mov rdx, rdi
movsxd rsi, esi
mov qword [rbx + rsi*8], 0
call fcn.1400119f0
mov r8, rbx
mov rdx, rdi
mov ecx, 3
mov qword [rsp + 0x28], 0
mov r9, rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
call fcn.1400123e0
mov rbx, rax
test rax, rax
je 0x14001b4f9
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
mov r8, rdi
lea rdx, str.Error_running__s:__s_n
mov rcx, rax
call fcn.14001b1a0
mov eax, 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14001b4ea
mov edx, eax
and edx, 0xff
je 0x14001b5d7
cmp edx, 0x7f
je 0x14001b4e5
mov ebp, eax
lea rsi, [0x14001d00e]
and ebp, 0x7f
test al, 0x80
lea rax, str.__core_dumped
mov ecx, ebp
cmovne rsi, rax
call fcn.140013430
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x28], rsi
mov r9d, ebp
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea rdx, str._s_terminated_with_signal__d___s__s_n
call fcn.14001b1a0
jmp 0x14001b4e5
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call fcn.140011460
mov rdi, rax
test rax, rax
jne 0x14001b41e
mov rsi, qword [rbp]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea rdx, str._s:_Cannot_find_binary__s_n
mov rcx, rax
mov r8, rsi
call fcn.14001b1a0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rbx, qword [rax]
test rbx, rbx
je 0x14001b63d
mov r8d, esi
mov rdx, r14
sub esi, 2
sub r8d, r13d
movsxd r8, r8d
shl r8, 3
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
jmp 0x14001b389
movzx eax, ah
jmp 0x14001b4ea
mov esi, 1
jmp 0x14001b464
mov rsi, qword [rbp]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea rdx, str._s:_Cannot_find_plugin__s_n
mov rcx, rax
mov r8, rsi
call fcn.14001b1a0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
lea rax, [0x14001d160]
mov qword [0x140021068], rax
jmp 0x14001b25d
lea rax, str.D:_a_msys64_ucrt64_lib_gcc_
mov qword [0x140021070], rax
jmp 0x14001b23b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Usage:_gcc_ar___B_prefix__ar_arguments_..._n
mov rcx, rax
call fcn.14001b1a0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x140011430