Function at 0x40b090
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.00404b80
lea rcx, str.GCC_EXEC_PREFIX
mov rsi, qword [rbp]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x40b0d2
lea rdx, str.gcc_ranlib
xor r8d, r8d
mov rcx, rax
call fcn.00401af0
mov rsi, rax
lea r8, str.C:_msys64_mingw64_lib_gcc_
mov rcx, rsi
lea rdx, str.C:_msys64_mingw64_bin_
call fcn.00402430
lea rdx, str.C:_msys64_mingw64_lib_gcc_
mov rcx, rsi
lea r8, str.C:_msys64_mingw64_libexec_gcc_
test rax, rax
cmovne rdx, rax
mov qword [0x00411070], rdx
lea rdx, str.C:_msys64_mingw64_bin_
call fcn.00402430
lea rdx, str.C:_msys64_mingw64_libexec_gcc_
lea r8, [0x0040d12f]
test rax, rax
cmovne rdx, rax
xor r9d, r9d
mov qword [0x00411068], rdx
lea rcx, str..._.._.._.._
lea rdx, str.x86_64_w64_mingw32
call fcn.00401af0
mov rcx, qword [0x00411070]
lea rsi, [0x0040d12f]
mov qword [rsp + 0x30], 0
lea r9, str.8.1.0
mov r8, rsi
mov qword [rsp + 0x28], rax
lea rdx, str.x86_64_w64_mingw32
mov qword [rsp + 0x20], rsi
call fcn.00401af0
lea rdx, [0x0040d050]
xor r8d, r8d
mov rcx, rax
call fcn.00401af0
lea rdx, [0x00411050]
mov rcx, rax
call fcn.00401840
mov rcx, qword [0x00411068]
mov r8, rsi
mov qword [rsp + 0x28], 0
lea r9, str.8.1.0
mov qword [rsp + 0x20], rsi
lea rdx, str.x86_64_w64_mingw32
call fcn.00401af0
lea rdx, [0x00411050]
mov rcx, rax
mov qword [0x00411068], rax
call fcn.00401840
lea rdx, [0x00411030]
lea rcx, [0x0040d054]
call fcn.00401990
test ebx, ebx
jle 0x40b2d0
lea r10d, [rbx - 1]
mov r9, rbp
xor edx, edx
lea r8, [0x0040d059]
mov r14, r10
jmp 0x40b224
lea rax, [rdx + 1]
add r9, 8
cmp r10, rdx
je 0x40b2d0
mov rdx, rax
mov r12, qword [r9]
mov ecx, 2
mov rdi, r8
mov r13d, edx
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x40b210
lea r8d, [rbx + 1]
mov rcx, r9
lea rsi, [rbp + rdx*8 + 8]
sub r8d, edx
movsxd r8, r8d
mov rdx, rsi
shl r8, 3
call sub.msvcrt.dll_memmove
cmp byte [r12 + 2], 0
je 0x40b4d9
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 0x40b2b2
lea rax, [r12 + rsi - 2]
cmp r12, rax
jae 0x40b2b2
movzx eax, byte [rax]
cmp al, 0x5c
je 0x40b2b2
cmp al, 0x2f
je 0x40b2b2
lea rdx, [0x0040d12d]
mov rcx, r12
xor r8d, r8d
call fcn.00401af0
mov r12, rax
lea rcx, [0x00411030]
mov rdx, r12
call fcn.00401830
lea rcx, [0x00411050]
mov rdx, r12
call fcn.00401830
lea rdx, str.liblto_plugin_0.dll
mov r8d, 4
lea rcx, [0x00411050]
call fcn.00401560
test rax, rax
mov rsi, rax
je 0x40b541
lea rdx, str.ranlib
mov r8d, 1
lea rcx, [0x00411050]
call fcn.00401560
test rax, rax
mov r13, rax
je 0x40b482
lea ecx, [rbx + 4]
mov edx, 8
movsxd rcx, ecx
call fcn.004036c0
cmp ebx, 1
mov r12, rax
mov qword [rax], r13
lea rax, str.__plugin
mov qword [r12 + 0x10], rsi
mov qword [r12 + 8], rax
jle 0x40b509
lea ecx, [rbx - 2]
mov eax, 1
add rcx, 2
nop word cs:[rax + rax]
mov rdx, qword [rbp + rax*8]
mov qword [r12 + rax*8 + 0x10], rdx
add rax, 1
cmp rcx, rax
jne 0x40b360
add ebx, 2
movsxd rbx, ebx
shl rbx, 3
xor r8d, r8d
mov qword [r12 + rbx], 0
mov rdx, r13
lea rcx, str.gcc_
call fcn.00401af0
mov r8, r12
mov rdx, r13
mov ecx, 3
mov qword [rsp + 0x28], 0
mov r9, rax
mov qword [rsp + 0x20], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
call fcn.00402450
test rax, rax
mov rbx, rax
je 0x40b40c
mov ecx, 2
call qword [fcn.0040adf0]
mov r9, rbx
mov r8, r13
lea rdx, str.Error_running__s:__s_n
mov rcx, rax
call fcn.0040b060
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 0x40b3fd
mov edx, eax
and edx, 0xff
je 0x40b501
cmp edx, 0x7f
je 0x40b513
lea rbx, str.__core_dumped
mov esi, eax
and esi, 0x7f
test al, 0x80
lea rax, [0x0040d00e]
mov ecx, esi
cmove rbx, rax
call fcn.00403400
mov ecx, 2
mov rdi, rax
call qword [fcn.0040adf0]
mov qword [rsp + 0x28], rbx
mov r9d, esi
mov r8, r13
mov qword [rsp + 0x20], rdi
lea rdx, str._s_terminated_with_signal__d___s__s_n
mov rcx, rax
call fcn.0040b060
mov eax, 1
jmp 0x40b3fd
lea rdx, str.ranlib
mov r8d, 1
lea rcx, [0x00411030]
call fcn.00401560
test rax, rax
mov r13, rax
jne 0x40b31a
mov rbx, qword [rbp]
mov ecx, 2
call qword [fcn.0040adf0]
lea r9, str.ranlib
lea rdx, str._s:_Cannot_find_binary__s_n
mov rcx, rax
mov r8, rbx
call fcn.0040b060
mov ecx, 1
call sub.msvcrt.dll_exit
mov r12, qword [rax]
test r12, r12
je 0x40b51d
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 0x40b271
movzx eax, ah
jmp 0x40b3fd
mov ebx, 0x18
jmp 0x40b37d
mov eax, 1
jmp 0x40b3fd
mov ecx, 2
call qword [fcn.0040adf0]
lea rdx, str.Usage:_gcc_ar___B_prefix__ar_arguments_..._n
mov rcx, rax
call fcn.0040b060
mov ecx, 1
call sub.msvcrt.dll_exit
mov rbx, qword [rbp]
mov ecx, 2
call qword [fcn.0040adf0]
lea r9, str.liblto_plugin_0.dll
lea rdx, str._s:_Cannot_find_plugin__s_n
mov rcx, rax
mov r8, rbx
call fcn.0040b060
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop