Function at 0x4048c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x68
push 0x4605c2
call sub.msvcrt.dll_getenv
mov dword [esp], str.4.9.x_20150123__prerelease_
mov dword [0x4a4168], eax
mov dword [0x4a4198], 0
mov dword [0x4a401c], 0
mov dword [0x4a42b8], 0
call fcn.00442860
mov dword [0x4a42a8], eax
add esp, 0x10
mov dl, byte [eax]
test dl, dl
jne 0x404919
jmp 0x404921
inc eax
mov dl, byte [eax]
test dl, dl
je 0x404921
cmp dl, 0x20
jne 0x404912
mov byte [eax], 0
mov ebx, dword [ebp + 8]
cmp ebx, 1
jbe 0x40514a
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov dword [ebp - 0x5c], 0
jmp 0x404953
cmp eax, 0x497
je 0x404b14
inc ecx
add edx, 0x2c
cmp ecx, ebx
je 0x40496c
mov eax, dword [edx + 0x2c]
cmp eax, 0x1bc
jne 0x404940
inc ecx
add edx, 0x2c
mov dword [ebp - 0x5c], 0x43adc0
cmp ecx, ebx
jne 0x404953
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40514a
mov eax, dword [0x4a4168]
mov dword [0x4a4368], 0x4605d4
test eax, eax
je 0x4050e9
push ecx
push 0
push 0x460674
push eax
call fcn.00442a10
add esp, 0xc
mov ebx, eax
push str._tmp_81bb757d7a175c6c06523986e7d60b5b_libexec_gcc_
push str._tmp_81bb757d7a175c6c06523986e7d60b5b_lib_gcc_
push eax
call dword [ebp - 0x5c]
add esp, 0x10
mov dword [0x4a4368], eax
test eax, eax
je 0x405160
sub esp, 0xc
push ebx
call sub.msvcrt.dll_free
add esp, 0x10
lea eax, [ebp + 8]
push edx
push 0x4a42b8
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040d220
mov ebx, dword [0x4a4168]
add esp, 0x10
test ebx, ebx
je 0x404a4f
sub esp, 0xc
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
mov esi, eax
cmp eax, 9
jg 0x404f23
push eax
push eax
mov eax, dword [0x4a4168]
push esi
push eax
call fcn.004108f0
add esp, 0xc
mov ecx, 0x4603ec
mov edx, dword [0x4a4368]
mov eax, 0x45b034
push 0
push 0
push 1
call fcn.00403a50
add esp, 0xc
mov ecx, 0x4603ec
mov edx, dword [0x4a4168]
mov eax, 0x45b020
push 0
push 0
push 1
call fcn.00403a50
add esp, 0x10
sub esp, 0xc
push str.COMPILER_PATH
call sub.msvcrt.dll_getenv
add esp, 0x10
mov esi, eax
test eax, eax
je 0x404b29
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
add eax, 0x21
add esp, 0x10
and eax, 0xfffffff0
call fcn.004521b0
lea ebx, [esi + 1]
lea eax, [esp + 0xf]
and eax, 0xfffffff0
mov dword [ebp - 0x60], eax
lea esi, [esi]
lea edx, [ebx - 1]
mov dword [ebp - 0x58], edx
mov al, byte [ebx - 1]
cmp al, 0x3b
je 0x404aa1
test al, al
jne 0x404b0e
mov edi, dword [ebp - 0x58]
push eax
sub edi, esi
mov eax, dword [ebp - 0x60]
push edi
push esi
push eax
call sub.msvcrt.dll_strncpy
add esp, 0x10
cmp esi, dword [ebp - 0x58]
je 0x404d9a
mov al, byte [ebx - 2]
cmp al, 0x2f
je 0x404b20
cmp al, 0x5c
je 0x404b20
mov eax, dword [ebp - 0x60]
mov byte [edi + eax], 0x2f
mov byte [eax + edi + 1], 0
xor ecx, ecx
mov edx, dword [ebp - 0x60]
push eax
mov eax, 0x45b034
push 0
push 0
push 1
call fcn.00403a50
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x60]
mov eax, 0x45b074
push 0
push 0
push 1
call fcn.00403a50
add esp, 0x10
cmp byte [ebx - 1], 0
je 0x404b29
mov esi, ebx
inc ebx
jmp 0x404a90
mov dword [ebp - 0x5c], 0x43ada0
jmp 0x40494b
mov edx, dword [ebp - 0x60]
mov byte [edi + edx], 0
jmp 0x404ad5
sub esp, 0xc
push str.LIBRARY_PATH
call sub.msvcrt.dll_getenv
add esp, 0x10
mov esi, eax
test eax, eax
je 0x404b4d
mov eax, dword [0x45b02c]
cmp byte [eax], 0x30
je 0x4052c8
sub esp, 0xc
push str.LPATH
call sub.msvcrt.dll_getenv
add esp, 0x10
mov esi, eax
test eax, eax
je 0x404b71
mov eax, dword [0x45b02c]
cmp byte [eax], 0x30
je 0x4051ad
lea eax, [ebp - 0x38]
mov dword [0x4a4378], 0xffffffff
call fcn.00401410
mov esi, dword [ebp + 8]
cmp esi, 1
jbe 0x404be0
mov ebx, dword [0x4a4238]
mov edx, dword [ebp + 0xc]
mov ecx, 1
jmp 0x404bb8
cmp eax, 0x1bb
je 0x404bc2
cmp eax, 0x7b
je 0x404bc2
test ebx, ebx
jne 0x404bcc
inc ecx
add edx, 0x2c
cmp ecx, esi
je 0x404bcc
mov eax, dword [edx + 0x2c]
cmp eax, 0x96
jne 0x404ba0
mov dword [0x4a4238], 1
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x44], 0x2c
jmp 0x404e02
cmp dword [0x4a41f8], 2
je 0x404ff0
mov eax, dword [0x4a4398]
test eax, eax
je 0x404c0c
sub esp, 0xc
push eax
call sub.msvcrt.dll_free
mov dword [0x4a4398], 0
add esp, 0x10
mov edx, dword [0x4a41f8]
test edx, edx
je 0x404c23
mov eax, dword [0x4a4fd8]
test eax, eax
jne 0x4050b5
cmp dword [0x4a4010], 0
je 0x404f96
jl 0x40516f
mov eax, dword [0x4a4168]
test eax, eax
je 0x4053ab
mov ebx, dword [str.arm_linux_androideabi]
push 0
push 0x463a1c
push ebx
push str..._.._.._.._
call fcn.00442a10
mov esi, eax
mov eax, dword [0x4a4168]
add esp, 0x10
test eax, eax
je 0x405156
push edi
push 0
push esi
push 0x463a1c
push str.4.9.x
push 0x463a1c
push ebx
push eax
call fcn.00442a10
add esp, 0x14
mov ebx, eax
push esi
call sub.msvcrt.dll_free
push 0
push 0x463a1c
push 0x460709
push ebx
call fcn.00442a10
add esp, 0x1c
mov edx, eax
mov ecx, str.BINUTILS
mov eax, 0x45b034
push 0
push 0
push 1
call fcn.00403a50
push 0
push 0x463a1c
push 0x460289
push ebx
call fcn.00442a10
add esp, 0x1c
mov edx, eax
push 1
mov eax, 0x45b020
push 0
mov ecx, str.BINUTILS
push 1
call fcn.00403a50
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [str._tmp_81bb757d7a175c6c06523986e7d60b5b_sysroot]
add esp, 0x10
test eax, eax
je 0x404d0c
mov ebx, dword [0x4a43b8]
test ebx, ebx
je 0x404ec0
mov eax, dword [0x4a401c]
cmp eax, dword [0x4a4378]
je 0x405051
mov eax, dword [0x4a4010]
sub eax, 2
cmp eax, 1
jbe 0x405080
mov eax, dword [0x4a4338]
test eax, eax
jne 0x404d45
mov edi, dword [0x4a4288]
test edi, edi
je 0x404f10
mov edx, 0x46074f
mov eax, str.help_dummy
mov dword [0x4a401c], 0
call fcn.00402df0
call fcn.00402b60
mov eax, dword [0x4a4198]
shl eax, 4
mov edx, dword [0x4a41d8]
mov dword [eax + edx], 0
call fcn.00402d80
mov eax, dword [0x4a401c]
shl eax, 4
mov edx, dword [0x4a42e8]
mov dword [eax + edx], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push esi
push 0
push 0x463a1c
push 0x46011f
call fcn.00442a10
pop edx
pop ecx
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x10
jmp 0x404ad5
mov edx, dword [0x45b564]
push ecx
push edx
lea edx, [ebp - 0x38]
push edx
push 0x80000
push 0
push eax
push 0x4a5040
push 0x4a45e0
call fcn.00415190
add esp, 0x20
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
inc edi
add esi, 0x2c
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x40]
cmp dword [ebp + 8], eax
jbe 0x404be0
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp + 0xc]
add eax, esi
cmp dword [eax], 0x504
jne 0x404dc0
mov eax, dword [eax + 8]
push ebx
mov dword [ebp - 0x4c], eax
push ebx
push 0x40
push eax
call sub.msvcrt.dll_strrchr
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x404e60
cmp eax, dword [ebp - 0x4c]
je 0x404e60
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x10]
push eax
push edx
push str.__li_n
push ebx
call sub.msvcrt.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x404e60
sub esp, 0xc
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
cmp eax, dword [ebp - 0x14]
je 0x405247
nop
sub esp, 0xc
mov ebx, dword [ebp - 0x4c]
push ebx
call fcn.00442860
mov ebx, 0x4606a0
mov dword [ebp - 0x48], eax
add esp, 0x10
cld
mov ecx, 2
mov esi, dword [ebp - 0x48]
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x404e9e
mov esi, dword [ebp - 0x48]
push edi
push edi
push 0
push esi
call sub.msvcrt.dll__access
add esp, 0x10
test eax, eax
js 0x4051a0
mov edx, dword [0x4a4388]
mov eax, dword [ebp - 0x4c]
call fcn.00402df0
sub esp, 0xc
mov ebx, dword [ebp - 0x48]
push ebx
call sub.msvcrt.dll_free
add esp, 0x10
jmp 0x404de6
mov ecx, dword [0x4a4168]
test ecx, ecx
je 0x404d0c
push edx
push eax
mov eax, dword [ebp + 0xc]
push str._tmp_81bb757d7a175c6c06523986e7d60b5b_bin_
mov eax, dword [eax + 8]
push eax
call dword [ebp - 0x5c]
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x404d0c
xor edx, edx
call fcn.00401e90
test eax, eax
jne 0x404d0c
mov dword [str._tmp_81bb757d7a175c6c06523986e7d60b5b_sysroot], ebx
mov dword [0x4a43b8], 1
jmp 0x404d0c
mov esi, dword [0x4a4298]
test esi, esi
jne 0x404d45
jmp 0x404d5e
mov al, byte [ebx + eax - 1]
cmp al, 0x2f
je 0x404f33
cmp al, 0x5c
jne 0x404a02
add ebx, esi
mov al, byte [ebx - 9]
lea edi, [ebx - 9]
cmp al, 0x2f
je 0x404f47
cmp al, 0x5c
jne 0x404a02
push eax
lea eax, [ebx - 8]
push 3
push 0x460289
push eax
call fcn.0043bcd0
add esp, 0x10
test eax, eax
jne 0x404a02
mov al, byte [edi + 4]
cmp al, 0x2f
je 0x404f72
cmp al, 0x5c
jne 0x404a02
push eax
lea eax, [ebx - 4]
push 3
push 0x460674
push eax
call fcn.0043bcd0
add esp, 0x10
test eax, eax
jne 0x404a02
sub esi, 9
jmp 0x404a02
sub esp, 0xc
push str.GCC_COMPARE_DEBUG
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x404c36
mov dl, byte [eax]
cmp dl, 0x2d
je 0x4050d5
test dl, dl
je 0x404c36
cld
mov edi, 0x4606e2
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404c36
mov dword [0x4a4010], 3
mov dword [0x4a4018], 0x4606e4
jmp 0x404c36
mov ebx, dword [0x4a4398]
test ebx, ebx
je 0x404c0c
sub esp, 0xc
push ebx
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov dword [0x4a43a8], eax
call fcn.0043b6a0
pop ecx
pop ebx
push 0x2e
push eax
call sub.msvcrt.dll_strrchr
add esp, 0x10
test eax, eax
je 0x404c0c
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
mov edx, dword [0x4a43a8]
add esp, 0x10
sub edx, eax
mov eax, dword [0x4a4398]
mov dword [0x4a43a8], edx
mov byte [eax + edx], 0
jmp 0x404c0c
mov eax, dword [0x4a4388]
test eax, eax
je 0x404d1d
push edi
push eax
push str.___x__s___after_last_input_file_has_no_effect
push 0
call fcn.004187b0
mov eax, dword [0x4a4010]
sub eax, 2
add esp, 0x10
cmp eax, 1
ja 0x404d2e
mov ebx, dword [0x4a4018]
push esi
push 0
push ebx
push 0x46073e
call fcn.00442a10
pop edx
xor edx, edx
pop ecx
xor ecx, ecx
push 1
push 0
call fcn.00402bd0
add esp, 0x10
mov dword [0x4a4010], 1
jmp 0x404d2e
push eax
push eax
push str._pipe_ignored_because__save_temps_specified
push 0
call fcn.004187b0
add esp, 0x10
mov dword [0x4a4fd8], 0
jmp 0x404c23
mov dword [0x4a4010], 2
mov dword [0x4a4018], eax
jmp 0x404c36
push eax
mov eax, dword [ebp + 0xc]
push str._tmp_81bb757d7a175c6c06523986e7d60b5b_lib_gcc_
push str._tmp_81bb757d7a175c6c06523986e7d60b5b_bin_
mov edi, dword [eax + 8]
push edi
call dword [ebp - 0x5c]
add esp, 0xc
mov dword [0x4a4168], eax
mov eax, dword [ebp + 0xc]
push str._tmp_81bb757d7a175c6c06523986e7d60b5b_libexec_gcc_
push str._tmp_81bb757d7a175c6c06523986e7d60b5b_bin_
mov esi, dword [eax + 8]
push esi
call dword [ebp - 0x5c]
mov dword [0x4a4368], eax
mov eax, dword [0x4a4168]
add esp, 0x10
test eax, eax
je 0x4049cb
push ebx
push 0
push eax
push str.GCC_EXEC_PREFIX
call fcn.00442a10
call fcn.004043c0
add esp, 0x10
jmp 0x4049cb
mov dword [ebp - 0x5c], 0x43adc0
jmp 0x404977
mov eax, str._tmp_81bb757d7a175c6c06523986e7d60b5b_lib_gcc_
jmp 0x404c6d
mov dword [0x4a4368], str._tmp_81bb757d7a175c6c06523986e7d60b5b_libexec_gcc_
jmp 0x4049bf
mov eax, dword [0x4a4018]
mov dword [0x4a4010], 0
test eax, eax
je 0x404c36
push eax
push str.process_command
push 0xfe2
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._gcc_gcc_4.9_gcc_gcc.c
call fcn.004183c0
nop
lea esi, [esi]
mov eax, dword [ebp - 0x48]
call fcn.00401490
jmp 0x404eac
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add eax, 0x21
add esp, 0x10
and eax, 0xfffffff0
call fcn.004521b0
lea ebx, [esi + 1]
lea eax, [esp + 0xf]
and eax, 0xfffffff0
mov dword [ebp - 0x68], eax
lea edx, [ebx - 1]
mov dword [ebp - 0x50], edx
mov al, byte [ebx - 1]
cmp al, 0x3b
je 0x4051e2
test al, al
jne 0x40523b
mov edi, dword [ebp - 0x50]
push eax
sub edi, esi
mov eax, dword [ebp - 0x68]
push edi
push esi
push eax
call sub.msvcrt.dll_strncpy
add esp, 0x10
cmp esi, dword [ebp - 0x50]
je 0x405385
mov al, byte [ebx - 2]
cmp al, 0x2f
je 0x40523e
cmp al, 0x5c
je 0x40523e
mov eax, dword [ebp - 0x68]
mov byte [edi + eax], 0x2f
mov byte [eax + edi + 1], 0
xor ecx, ecx
mov edx, dword [ebp - 0x68]
push edi
mov eax, 0x45b020
push 1
push 0
push 1
call fcn.00403a50
add esp, 0x10
cmp byte [ebx - 1], 0
je 0x404b71
mov esi, ebx
inc ebx
jmp 0x4051d1
mov edx, dword [ebp - 0x68]
mov byte [edi + edx], 0
jmp 0x405216
mov ecx, dword [ebp - 0x4c]
sub esp, 0xc
sub ebx, ecx
lea eax, [ebx + 1]
push eax
call fcn.0043b7c0
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
push ebx
push edx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x48]
mov ecx, 2
cld
mov byte [ebx + eax], 0
mov ebx, 0x4606a0
mov esi, dword [ebp - 0x48]
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
add esp, 0x10
cmp dl, al
je 0x4052a7
push eax
push eax
mov eax, dword [ebp - 0x48]
push 0
push eax
call sub.msvcrt.dll__access
add esp, 0x10
test eax, eax
jns 0x404e77
sub esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
call sub.msvcrt.dll_free
pop eax
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00442860
add esp, 0x10
mov dword [ebp - 0x48], eax
jmp 0x404e77
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add eax, 0x21
add esp, 0x10
and eax, 0xfffffff0
call fcn.004521b0
lea ebx, [esi + 1]
lea eax, [esp + 0xf]
and eax, 0xfffffff0
mov dword [ebp - 0x64], eax
lea esi, [esi]
lea edx, [ebx - 1]
mov dword [ebp - 0x54], edx
mov al, byte [ebx - 1]
cmp al, 0x3b
je 0x405301
test al, al
jne 0x405356
mov edi, dword [ebp - 0x54]
push eax
sub edi, esi
mov eax, dword [ebp - 0x64]
push edi
push esi
push eax
call sub.msvcrt.dll_strncpy
add esp, 0x10
cmp esi, dword [ebp - 0x54]
je 0x405362
mov al, byte [ebx - 2]
cmp al, 0x2f
je 0x405359
cmp al, 0x5c
je 0x405359
mov eax, dword [ebp - 0x64]
mov byte [edi + eax], 0x2f
mov byte [eax + edi + 1], 0
xor ecx, ecx
push eax
mov edx, dword [ebp - 0x64]
push 1
mov eax, 0x45b020
push 0
push 1
call fcn.00403a50
add esp, 0x10
cmp byte [ebx - 1], 0
je 0x404b4d
mov esi, ebx
inc ebx
jmp 0x4052f0
mov edx, dword [ebp - 0x64]
mov byte [edi + edx], 0
jmp 0x405331
push esi
push 0
push 0x463a1c
push 0x46011f
call fcn.00442a10
pop edx
pop ecx
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x10
jmp 0x405331
push esi
push 0
push 0x463a1c
push 0x46011f
call fcn.00442a10
pop edx
pop ecx
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x10
jmp 0x405216
mov ecx, 0x4603ec
push eax
mov edx, str._tmp_81bb757d7a175c6c06523986e7d60b5b_libexec_gcc_
push 0
mov eax, 0x45b034
push 1
push 1
call fcn.00403a50
add esp, 0xc
mov ecx, str.BINUTILS
mov edx, str._tmp_81bb757d7a175c6c06523986e7d60b5b_libexec_gcc_
mov eax, 0x45b034
push 0
push 2
push 1
call fcn.00403a50
add esp, 0xc
mov ecx, str.BINUTILS
mov edx, str._tmp_81bb757d7a175c6c06523986e7d60b5b_lib_gcc_
mov eax, 0x45b034
push 0
push 2
push 1
call fcn.00403a50
add esp, 0xc
mov ecx, str.BINUTILS
mov edx, str._tmp_81bb757d7a175c6c06523986e7d60b5b_lib_gcc_
mov eax, 0x45b020
push 0
push 1
push 1
call fcn.00403a50
add esp, 0x10
jmp 0x404c43