Function at 0x4a15a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov esi, dword [ecx]
mov eax, dword [0x54ddcc]
cmp dword [esi + 0xc0], eax
jl 0x4a12c5
mov eax, dword [esi + 0xc8]
cmp eax, 0xffffffff
je 0x4a1332
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 4], 0x5724bc
mov esi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0053be40
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0053be40
mov eax, dword [ebx]
jmp 0x4a1334
mov eax, dword [esi + 0x28]
mov dword [esi], 0x58278c
mov dword [esi + 0x2c], 0x5827a0
mov dword [esi + 4], 0x5822a8
lea ecx, [eax - 0xc]
cmp ecx, 0x553a30
jne 0x4a14e8
lea ecx, [esi + 0x20]
mov dword [esi + 4], vtable.c_streambufIwSt11char_traitsIwEE.0
call fcn.00530e30
mov eax, dword [0x57f964]
lea ecx, [esi + 0x2c]
mov edx, dword [0x57f968]
mov dword [esi], eax
mov eax, dword [eax - 0xc]
mov dword [esi + eax], edx
mov dword [esi + 0x2c], 0x582d30
call fcn.005340a0
mov dword [esp], esi
call fcn.0053e980
mov dword [ebx], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
add eax, 4
lea esi, [ebp - 0x1c]
mov dword [esp], eax
mov ecx, esi
call fcn.004e69f0
push eax
call fcn.004a0a50
mov dword [esp], eax
mov dword [ebp - 0x30], eax
call fcn.004afb39
test eax, eax
jne 0x4a156a
mov dword [esp + 4], 0
mov ecx, esi
mov dword [esp], 0xa
call fcn.004e47d0
add eax, 1
push edi
push edi
je 0x4a1526
mov ecx, esi
xor edi, edi
mov dword [esp], 0xa
call fcn.0050df50
mov eax, dword [ebp - 0x1c]
push ecx
cmp dword [eax - 0xc], 0
je 0x4a144c
mov dword [esp + 4], edi
mov ecx, esi
mov dword [esp], 0xa
call fcn.004e47d0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov edx, dword [eax - 4]
test edx, edx
js 0x4a13c8
mov ecx, esi
call fcn.0050c280
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 4]
test eax, eax
js 0x4a13e3
mov ecx, esi
call fcn.0050c280
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx]
lea edx, [ecx + edi]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xc4]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc0]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0xbc]
mov dword [esp + 8], edx
mov edx, dword [eax + 0xb8]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.004a11f0
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax - 4]
test edi, edi
js 0x4a1436
mov ecx, esi
call fcn.0050c280
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
mov byte [eax + edi], 0xa
mov eax, dword [ebp - 0x1c]
add edi, 1
cmp edi, dword [eax - 0xc]
jb 0x4a139c
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.004afbf2
mov eax, dword [ebx]
cmp dword [eax + 0xc0], 6
je 0x4a1509
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
lea eax, [ebp - 0x1d]
mov dword [esp], eax
call fcn.0050c8c0
mov edi, dword [ebx]
test edi, edi
push ecx
je 0x4a14dd
mov eax, dword [edi + 0x28]
mov dword [edi], 0x58278c
mov dword [edi + 0x2c], 0x5827a0
mov dword [edi + 4], 0x5822a8
lea ecx, [eax - 0xc]
cmp ecx, 0x553a30
jne 0x4a1572
lea ecx, [edi + 0x20]
mov dword [edi + 4], vtable.c_streambufIwSt11char_traitsIwEE.0
call fcn.00530e30
mov eax, dword [0x57f964]
lea ecx, [edi + 0x2c]
mov edx, dword [0x57f968]
mov dword [edi], eax
mov eax, dword [eax - 0xc]
mov dword [edi + eax], edx
mov dword [edi + 0x2c], 0x582d30
call fcn.005340a0
mov dword [esp], edi
call fcn.0053e980
mov dword [ebx], 0
jmp 0x4a132a
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4a12eb
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.0050c8a0
push eax
jmp 0x4a12eb
mov edi, dword [ebp - 0x1c]
call fcn.004a09e0
cmp dword [eax + 8], 0
je 0x4a1590
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [eax + 0xc]
jmp 0x4a1466
mov eax, dword [ebx]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xc4]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc0]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0xbc]
mov dword [esp + 8], edx
mov edx, dword [eax + 0xb8]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.004a11f0
jmp 0x4a144c
mov dword [esp], eax
call fcn.00538ed0
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4a14a4
mov dword [esp], esi
call fcn.0050c8a0
push edx
jmp 0x4a14a4
call fcn.00539630
lea esi, [esi]
lea edi, [edi]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp], eax
call fcn.004a0d90
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004a0e50
cmp byte [0x585e54], 0
jne 0x4a181d
test ebx, ebx
mov byte [0x585e54], 1
je 0x4a1615
mov eax, dword [ebx]
lea ebx, [ebp - 0x24]
mov dword [esp], eax
call fcn.004bf340
lea edx, [ebp - 0x2c]
mov ecx, ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0050dfd0
sub esp, 8
mov dword [esp], ebx
call fcn.004a0ce0
mov eax, dword [ebp - 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x553a30
jne 0x4a1931
mov dword [esp], str.ANDROID_LOG_TAGS
call sub.msvcrt.dll_getenv
test eax, eax
mov ebx, eax
mov dword [ebp - 0x40], eax
je 0x4a181d
lea eax, [ebp - 0x2e]
lea edi, [ebp - 0x28]
mov dword [esp + 4], eax
mov ecx, edi
mov dword [esp], 0x5724d0
lea esi, [ebp - 0x2c]
call fcn.0050dfd0
lea eax, [ebp - 0x2f]
mov ecx, esi
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0050dfd0
lea eax, [ebp - 0x24]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call fcn.004a1c80
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0xc]
cmp ecx, 0x553a30
jne 0x4a18f2
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 0xc]
cmp ecx, 0x553a30
jne 0x4a1913
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, edx
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x4a180a
xor ebx, ebx
jmp 0x4a1794
cmp dword [0x54ddcc], 6
jg 0x4a176e
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, edi
mov edx, dword [eax]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x149
mov dword [esp], str.system_core_base_logging.cpp
mov dword [ebp - 0x3c], edx
call fcn.004a0f10
mov eax, dword [ebp - 0x28]
sub esp, 0x18
mov dword [esp + 4], str.unsupported_
mov dword [esp], eax
call fcn.0053be40
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.005379f0
mov dword [esp + 4], str._in_ANDROID_LOG_TAGS__
mov dword [esp], eax
call fcn.0053be40
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0053be40
mov dword [esp + 4], 0x572518
mov dword [esp], eax
call fcn.0053be40
mov ecx, edi
call fcn.004a1270
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0xc]
cmp ecx, 0x553a30
jne 0x4a18db
mov edx, dword [ebp - 0x20]
add ebx, 1
mov eax, dword [ebp - 0x24]
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x4a180a
lea eax, [eax + ebx*4]
mov ecx, esi
mov dword [esp], eax
call fcn.0050e070
mov eax, dword [ebp - 0x2c]
sub esp, 4
cmp dword [eax - 0xc], 3
jne case.0x4a17ef.3
mov dword [esp + 4], 0x5724d2
mov dword [esp], esi
call fcn.004a1a60
test al, al
je case.0x4a17ef.3
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx - 4]
test eax, eax
js 0x4a17dd
mov ecx, esi
call fcn.0050c280
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 2]
sub eax, 0x64
cmp al, 0x13
ja case.0x4a17ef.3
movzx eax, al
jmp dword [eax*4 + 0x57251c]
mov ebx, dword [eax]
lea ecx, [ebx - 0xc]
cmp ecx, 0x553a30
jne 0x4a18af
add eax, 4
cmp edx, eax
jne 0x4a17f6
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4a181d
mov dword [esp], eax
call fcn.0053e980
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x54ddcc], 5
lea ecx, [edx - 0xc]
cmp ecx, 0x553a30
je 0x4a1780
mov eax, 0xffffffff
lock xadd dword [edx - 4], eax
test eax, eax
jg 0x4a1780
mov dword [esp], edi
call fcn.0050c8a0
push ecx
jmp 0x4a1780
mov dword [0x54ddcc], 2
jmp 0x4a182f
mov dword [0x54ddcc], 3
jmp 0x4a182f
mov dword [0x54ddcc], 4
jmp 0x4a182f
mov dword [0x54ddcc], 1
jmp 0x4a182f
mov dword [0x54ddcc], 0
jmp 0x4a182f
mov esi, 0xffffffff
lock xadd dword [ebx - 4], esi
test esi, esi
jg 0x4a1807
mov dword [esp], edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
call fcn.0050c8a0
mov eax, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x40]
jmp 0x4a1807
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4a1780
jmp 0x4a1850
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4a1685
lea eax, [ebp - 0x2d]
mov dword [esp], eax
call fcn.0050c8a0
push eax
jmp 0x4a1685
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4a1697
mov dword [esp], esi
call fcn.0050c8a0
push ebx
jmp 0x4a1697
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4a1615
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.0050c8a0
push eax
jmp 0x4a1615