Function at 0x40bb10
Capabilities:
Query environment variable

Disassembly:
pop ecx
inc dh
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x40
mov ebx, dword [ebp + 8]
call fcn.00404dd0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov dword [esp], str.GCC_EXEC_PREFIX
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40bb53
mov dword [esp + 8], 0
mov dword [esp + 4], str.gcc_ranlib
mov dword [esp], eax
call fcn.00401b30
mov esi, eax
mov dword [esp + 8], str.C:_mingw64tdm_lib_gcc_
mov dword [esp + 4], str.C:_mingw64tdm_bin_
mov dword [esp], esi
call fcn.004024d0
mov dword [0x41003c], eax
test eax, eax
je 0x40bfb9
mov dword [esp + 8], str.C:_mingw64tdm_libexec_gcc_
mov dword [esp + 4], str.C:_mingw64tdm_bin_
mov dword [esp], esi
call fcn.004024d0
mov dword [0x410038], eax
test eax, eax
je 0x40bfaa
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40e12b
mov dword [esp + 4], str.x86_64_w64_mingw32
mov dword [esp], str..._.._.._.._
call fcn.00401b30
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov eax, dword [0x41003c]
mov dword [esp + 0x10], 0x40e12b
mov dword [esp + 0xc], str.9.2.0
mov dword [esp + 8], 0x40e12b
mov dword [esp + 4], str.x86_64_w64_mingw32
mov dword [esp], eax
call fcn.00401b30
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40e050
mov dword [esp], eax
call fcn.00401b30
mov dword [esp + 4], 0x41002c
mov dword [esp], eax
call fcn.00401870
mov eax, dword [0x410038]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x40e12b
mov dword [esp + 0xc], str.9.2.0
mov dword [esp + 8], 0x40e12b
mov dword [esp + 4], str.x86_64_w64_mingw32
mov dword [esp], eax
call fcn.00401b30
mov dword [esp + 4], 0x41002c
mov dword [esp], eax
mov dword [0x410038], eax
call fcn.00401870
mov dword [esp + 4], 0x410020
mov dword [esp], 0x40e054
call fcn.004019d0
test ebx, ebx
jle 0x40bd4c
mov edi, dword [ebp + 0xc]
xor edx, edx
jmp 0x40bc9e
add edx, 1
add edi, 4
cmp ebx, edx
je 0x40bd4c
mov esi, dword [edi]
cmp byte [esi], 0x2d
jne 0x40bc90
cmp byte [esi + 1], 0x42
jne 0x40bc90
mov eax, dword [ebp + 0xc]
mov dword [esp], edi
mov dword [esp + 0x28], edx
lea ecx, [eax + edx*4 + 4]
mov eax, ebx
sub eax, edx
mov dword [esp + 4], ecx
lea eax, [eax*4 + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memmove
cmp byte [esi + 2], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
je 0x40bf69
add esi, 2
sub ebx, 1
xor eax, eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
cmp ecx, 0xfffffffe
je 0x40bd2c
lea eax, [esi + eax - 2]
cmp esi, eax
jae 0x40bd2c
movzx eax, byte [eax]
cmp al, 0x5c
je 0x40bd2c
cmp al, 0x2f
je 0x40bd2c
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40e129
call fcn.00401b30
mov esi, eax
mov dword [esp + 4], esi
mov dword [esp], 0x410020
call fcn.00401840
mov dword [esp + 4], esi
mov dword [esp], 0x41002c
call fcn.00401840
mov dword [esp + 8], 4
mov dword [esp + 4], str.liblto_plugin_0.dll
mov dword [esp], 0x41002c
call fcn.00401540
mov edi, eax
test eax, eax
je 0x40bff1
mov dword [esp + 8], 1
mov dword [esp + 4], str.ranlib
mov dword [esp], 0x41002c
call fcn.00401540
mov esi, eax
test eax, eax
je 0x40bf09
lea eax, [ebx + 4]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00403810
mov dword [eax], esi
mov edx, eax
mov dword [eax + 4], str.__plugin
mov dword [eax + 8], edi
cmp ebx, 1
jle 0x40bf96
mov eax, dword [ebp + 0xc]
lea edi, [ebx*4]
lea ecx, [edx + 0xc]
mov dword [esp + 0x2c], edi
add edi, dword [ebp + 0xc]
add eax, 4
lea esi, [esi]
mov ebx, dword [eax]
add eax, 4
add ecx, 4
mov dword [ecx - 4], ebx
cmp edi, eax
jne 0x40bde0
mov ebx, dword [esp + 0x2c]
add ebx, 8
mov dword [edx + ebx], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], str.gcc_
mov dword [esp + 0x2c], edx
call fcn.00401b30
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], 3
call fcn.00402510
mov ebx, eax
test eax, eax
je 0x40be8d
mov dword [esp], 2
call dword [0x40d03c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.Error_running__s:__s_n
mov dword [esp], eax
call fcn.0040bae0
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40be85
mov edx, eax
and edx, 0xff
je 0x40bf8e
cmp edx, 0x7f
je 0x40bfa0
mov edi, eax
mov edx, str.__core_dumped
and edi, 0x7f
test al, 0x80
mov eax, 0x40e00e
mov dword [esp], edi
cmove edx, eax
mov dword [esp + 0x2c], edx
call fcn.00403580
mov dword [esp], 2
mov ebx, eax
call dword [0x40d03c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_terminated_with_signal__d___s__s_n
mov dword [esp], eax
call fcn.0040bae0
mov eax, 1
jmp 0x40be85
mov dword [esp + 8], 1
mov dword [esp + 4], str.ranlib
mov dword [esp], 0x410020
call fcn.00401540
mov esi, eax
test eax, eax
jne 0x40bd98
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [esp], 2
call dword [0x40d03c]
mov dword [esp + 0xc], str.ranlib
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s:_Cannot_find_binary__s_n
mov dword [esp], eax
call fcn.0040bae0
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov esi, dword [edi]
test esi, esi
je 0x40bfc8
mov eax, ebx
mov dword [esp + 4], ecx
sub ebx, 2
sub eax, edx
mov dword [esp], edi
shl eax, 2
mov dword [esp + 8], eax
call sub.msvcrt.dll_memmove
jmp 0x40bced
movzx eax, ah
jmp 0x40be85
mov ebx, 0xc
jmp 0x40bdf6
mov eax, 1
jmp 0x40be85
mov dword [0x410038], str.C:_mingw64tdm_libexec_gcc_
jmp 0x40bb9d
mov dword [0x41003c], str.C:_mingw64tdm_lib_gcc_
jmp 0x40bb78
mov dword [esp], 2
call dword [0x40d03c]
mov dword [esp + 4], str.Usage:_gcc_ar___B_prefix__ar_arguments_..._n
mov dword [esp], eax
call fcn.0040bae0
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [esp], 2
call dword [0x40d03c]
mov dword [esp + 0xc], str.liblto_plugin_0.dll
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s:_Cannot_find_plugin__s_n
mov dword [esp], eax
call fcn.0040bae0
mov dword [esp], 1
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
jmp 0x401500