Function at 0x40c600
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, rdx
mov ebx, ecx
call fcn.00405e20
lea rcx, str.GCC_EXEC_PREFIX
mov rsi, qword [rbp]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x40c642
lea rdx, str.gcc_ranlib
xor r8d, r8d
mov rcx, rax
call fcn.00401b52
mov rsi, rax
lea r8, str._workdir_xtensa_lx106_elf.win64_lib_gcc_
lea rdx, str._workdir_xtensa_lx106_elf.win64_bin_
mov rcx, rsi
call fcn.004026cf
lea rdx, str._workdir_xtensa_lx106_elf.win64_lib_gcc_
test rax, rax
lea r8, str._workdir_xtensa_lx106_elf.win64_libexec_gcc_
mov rcx, rsi
lea rsi, [0x0040e12f]
cmove rax, rdx
lea rdx, str._workdir_xtensa_lx106_elf.win64_bin_
mov qword [0x00412070], rax
call fcn.004026cf
lea rdx, str._workdir_xtensa_lx106_elf.win64_libexec_gcc_
test rax, rax
lea r8, [0x0040e12f]
lea rcx, str..._.._.._.._
cmove rax, rdx
lea rdx, str.xtensa_lx106_elf
xor r9d, r9d
mov qword [0x00412068], rax
call fcn.00401b52
mov rcx, qword [0x00412070]
lea r9, str.10.3.0
lea rdx, str.xtensa_lx106_elf
mov r8, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.00401b52
lea rdx, [0x0040e04f]
xor r8d, r8d
mov rcx, rax
call fcn.00401b52
lea rdx, [0x00412050]
mov rcx, rax
call fcn.00401840
mov rcx, qword [0x00412068]
lea r9, str.10.3.0
lea rdx, str.xtensa_lx106_elf
mov r8, rsi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call fcn.00401b52
lea rdx, [0x00412050]
mov rcx, rax
mov qword [0x00412068], rax
call fcn.00401840
lea rdx, [0x00412030]
lea rcx, [0x0040e053]
call fcn.00401980
test ebx, ebx
jle 0x40c838
lea r8d, [rbx - 1]
mov r9, rbp
xor eax, eax
lea r10, [0x0040e058]
mov r14, r8
add r8, 1
jmp 0x40c793
add rax, 1
add r9, 8
cmp rax, r8
je 0x40c838
mov r12, qword [r9]
mov ecx, 2
mov rdi, r10
mov r13d, eax
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
jne 0x40c782
lea r8d, [rbx + 1]
lea rsi, [rbp + rax*8 + 8]
mov rcx, r9
sub r8d, eax
mov rdx, rsi
movsxd r8, r8d
shl r8, 3
call sub.msvcrt.dll_memmove
cmp byte [r12 + 2], 0
je 0x40ca42
add r12, 2
mov ebx, r14d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
mov rsi, rcx
not rsi
cmp rsi, 1
je 0x40c81a
lea rax, [r12 + rsi - 2]
cmp r12, rax
jae 0x40c81a
movzx eax, byte [rax]
cmp al, 0x5c
je 0x40c81a
cmp al, 0x2f
je 0x40c81a
lea rdx, [0x0040e12d]
mov rcx, r12
xor r8d, r8d
call fcn.00401b52
mov r12, rax
lea rcx, [0x00412030]
mov rdx, r12
call fcn.00401830
lea rcx, [0x00412050]
mov rdx, r12
call fcn.00401830
lea rdx, str.liblto_plugin_0.dll
lea rcx, [0x00412050]
mov r8d, 4
call fcn.00401570
test rax, rax
mov rsi, rax
je 0x40ca86
lea rdx, str.ranlib
lea rcx, [0x00412050]
mov r8d, 1
call fcn.00401570
test rax, rax
mov r13, rax
je 0x40c9d7
lea ecx, [rbx + 4]
mov edx, 8
movsxd rcx, ecx
call fcn.00404178
mov r12, rax
mov qword [rax], r13
lea rax, str.__plugin
cmp ebx, 1
mov qword [r12 + 0x10], rsi
mov qword [r12 + 8], rax
jle 0x40ca72
lea eax, [rbx - 2]
lea rcx, [rax*8 + 8]
xor eax, eax
nop
mov rdx, qword [rbp + rax + 8]
mov qword [r12 + rax + 0x18], rdx
add rax, 8
cmp rcx, rax
jne 0x40c8c0
add ebx, 2
movsxd rbx, ebx
shl rbx, 3
lea rcx, str.gcc_
xor r8d, r8d
mov qword [r12 + rbx], 0
mov rdx, r13
call fcn.00401b52
mov r9, rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r12
mov rdx, r13
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov ecx, 3
mov qword [rsp + 0x30], rax
call fcn.00402740
test rax, rax
mov rbx, rax
jne 0x40c9b4
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x40c9a5
mov edx, eax
and edx, 0xff
je 0x40ca6a
cmp edx, 0x7f
je 0x40ca7c
mov esi, eax
lea rbx, [0x0040e00e]
and esi, 0x7f
test al, 0x80
lea rax, str.__core_dumped
mov ecx, esi
cmovne rbx, rax
call fcn.00403e12
mov rdi, rax
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str._s_terminated_with_signal__d___s__s_n
lea rcx, [rax + 0x60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov r9d, esi
mov r8, r13
call fcn.0040c5d0
mov eax, 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.Error_running__s:__s_n
lea rcx, [rax + 0x60]
mov r9, rbx
mov r8, r13
call fcn.0040c5d0
mov eax, 1
jmp 0x40c9a5
lea r8, str.ranlib
lea rdx, [0x0040e0c4]
lea rcx, str.xtensa_lx106_elf
xor r9d, r9d
call fcn.00401b52
lea rcx, [0x00412030]
mov r8d, 1
mov rdx, rax
mov rdi, rax
call fcn.00401570
test rax, rax
mov r13, rax
jne 0x40c882
mov rbx, qword [rbp]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str._s:_Cannot_find_binary__s_n
lea rcx, [rax + 0x60]
mov r9, rdi
mov r8, rbx
call fcn.0040c5d0
mov ecx, 1
call sub.msvcrt.dll_exit
mov r12, qword [rax]
test r12, r12
je 0x40cab4
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
sub r8d, r13d
sub ebx, 2
movsxd r8, r8d
shl r8, 3
call sub.msvcrt.dll_memmove
jmp 0x40c7d9
movzx eax, ah
jmp 0x40c9a5
mov ebx, 0x18
jmp 0x40c8dd
mov eax, 1
jmp 0x40c9a5
mov rbx, qword [rbp]
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, str.liblto_plugin_0.dll
lea rcx, [rax + 0x60]
lea rdx, str._s:_Cannot_find_plugin__s_n
mov r8, rbx
call fcn.0040c5d0
mov ecx, 1
call sub.msvcrt.dll_exit
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.Usage:_gcc_ar___B_prefix__ar_arguments_..._n
lea rcx, [rax + 0x60]
call fcn.0040c5d0
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.00401530