Function at 0x47b480
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, dword [ebp + 0x10]
lea esi, [esp + 0x60]
push dword [ebp + 0xc]
push esi
call 0x47b930
add esp, 8
mov ecx, dword [esp + 0x70]
cmp ecx, esi
je 0x47b4b7
test ecx, ecx
je 0x47b4c2
mov eax, dword [ecx]
add eax, 0x14
mov esi, ecx
jmp 0x47b4be
mov eax, dword [esp + 0x60]
add eax, 0x10
mov ecx, esi
call dword [eax]
lea esi, [esp + 0x48]
push edi
push esi
call fcn.0047baa0
add esp, 8
mov ecx, dword [esp + 0x58]
cmp ecx, esi
je 0x47b4e5
test ecx, ecx
je 0x47b4f0
mov eax, dword [ecx]
add eax, 0x14
mov esi, ecx
jmp 0x47b4ec
mov eax, dword [esp + 0x48]
add eax, 0x10
mov ecx, esi
call dword [eax]
cmp byte [0x5ab550], 0
jne 0x47b90b
mov eax, dword [ebp + 8]
mov byte [0x5ab550], 1
test eax, eax
je 0x47b5c6
push dword [eax]
call fcn.004a3180
add esp, 4
mov esi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x47b913
mov ebx, eax
cmp eax, 0xb
jae 0x47b55e
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ebx, ebx
jne 0x47b58a
jmp 0x47b595
mov dword [esp + 0x1c], esi
mov esi, ebx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
call fcn.00420210
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
add ebx, 2
mov dword [esp + 0x10], ebx
mov ebx, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
push ebx
push esi
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
test byte [esp + 0x10], 1
je 0x47b5a6
mov eax, dword [esp + 0x18]
jmp 0x47b5aa
lea eax, [esp + 0x11]
push eax
call fcn.004a77a0
add esp, 4
test byte [esp + 0x10], 1
je 0x47b5c6
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
push str.ANDROID_LOG_TAGS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x47b90b
mov esi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x47b91c
mov ebx, eax
cmp eax, 0xb
mov dword [esp + 0x30], esi
jae 0x47b63a
mov eax, ebx
add al, bl
mov byte [esp], al
lea edi, [esp + 1]
test ebx, ebx
jne 0x47b65f
jmp 0x47b66a
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.00420210
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
add esi, 2
mov dword [esp], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 4], ebx
push ebx
push esi
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov word [esp + 0x20], 0x2002
lea eax, [esp + 0x20]
mov edx, esp
lea ecx, [esp + 0x10]
push eax
push edx
push ecx
call fcn.0042a230
add esp, 0xc
test byte [esp + 0x20], 1
je 0x47b6b5
push dword [esp + 0x28]
call fcn.004203b0
add esp, 4
test byte [esp], 1
je 0x47b6c7
push dword [esp + 8]
call fcn.004203b0
add esp, 4
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov esi, edi
cmp edi, eax
je 0x47b8d3
xor ecx, ecx
mov esi, eax
xor ebx, ebx
jmp 0x47b715
inc ebx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, edi
sub eax, esi
sar eax, 2
imul eax, eax, 0xaaaaaaab
mov ecx, dword [esp + 0x1c]
add ecx, 0xc
cmp ebx, eax
jae 0x47b8d3
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], ecx
add esi, ecx
mov ecx, esp
push esi
call fcn.00423570
movzx eax, byte [esp]
test al, 1
je 0x47b750
mov ecx, dword [esp + 4]
cmp ecx, 3
je 0x47b75d
jmp case.0x47b7c8.103
mov ecx, eax
shr ecx, 1
cmp ecx, 3
jne case.0x47b7c8.103
lea ecx, [esp + 1]
test al, 1
je 0x47b769
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 3
mov dword [esp + 0x38], 0x581d3d
mov dword [esp + 0x3c], 2
sub esp, 0x10
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x50]
movsd qword [esp], xmm0
call fcn.0042a580
add esp, 0x10
test al, al
je case.0x47b7c8.103
mov eax, dword [esp + 8]
add eax, 2
test byte [esp], 1
lea ecx, [esp + 3]
cmove eax, ecx
movsx eax, byte [eax]
add eax, 0xffffff9c
cmp eax, 0x13
ja case.0x47b7c8.103
jmp dword [eax*4 + 0x581cd0]
push 7
jmp 0x47b8b0
push 4
push 0
push 7
call fcn.004a82d0
add esp, 0xc
test eax, eax
je 0x47b8b8
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov esi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x581cc0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_logging.cpp
lea ecx, [esp + 0x34]
call fcn.0047bcb0
push 0xd
push str.unsupported_
push dword [esp + 0x28]
call fcn.00414a40
add esp, 0xc
mov ecx, esp
push ecx
push eax
call fcn.004127b0
add esp, 8
push 0x17
push str._in_ANDROID_LOG_TAGS__
push eax
call fcn.00414a40
add esp, 0xc
mov dword [esp + 0x34], eax
mov edi, dword [esp + 0x30]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push edi
push dword [esp + 0x3c]
call fcn.00414a40
add esp, 0xc
push 1
push 0x581d81
push eax
call fcn.00414a40
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0047bd80
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
jmp 0x47b8b8
push 6
jmp 0x47b8b0
push 2
jmp 0x47b8b0
push 3
jmp 0x47b8b0
push 4
jmp 0x47b8b0
push 5
nop word cs:[eax + eax]
call fcn.004a79c0
add esp, 4
test byte [esp], 1
je 0x47b6f0
push dword [esp + 8]
call fcn.004203b0
add esp, 4
jmp 0x47b6f0
test esi, esi
je 0x47b90b
cmp edi, esi
jne 0x47b8e7
jmp 0x47b8fe
add edi, 0xfffffff4
cmp edi, esi
je 0x47b8fa
test byte [edi - 0xc], 1
je 0x47b8e0
push dword [edi - 4]
call fcn.004203b0
add esp, 4
jmp 0x47b8e0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
push edi
call fcn.004203b0
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00423320
mov ecx, esp
call fcn.00423320
nop word cs:[eax + eax]
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
movzx eax, byte [0x5ab660]
test al, al
je 0x47ba05
mov eax, dword [0x5ab658]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47b976
cmp ecx, eax
je 0x47b97f
mov dword [esi + 0x10], ecx
mov dword [eax + 0x10], 0
jmp 0x47b98b
mov dword [esi + 0x10], 0
jmp 0x47b98b
mov dword [esi + 0x10], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
movzx eax, byte [0x5ab660]
test al, al
je 0x47ba4b
mov ebx, dword [esp + 0x14]
mov edi, dword [0x5ab658]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], 0
cmp ecx, edi
je 0x47b9bd
test ecx, ecx
je 0x47b9c6
mov eax, dword [ecx]
add eax, 0x14
jmp 0x47b9c4
mov eax, dword [edi]
add eax, 0x10
mov ecx, edi
call dword [eax]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x47b9dd
cmp eax, ebx
je 0x47b9e6
mov dword [edi + 0x10], eax
mov dword [ebx + 0x10], 0
jmp 0x47b9f2
mov dword [edi + 0x10], 0
jmp 0x47b9f2
mov dword [edi + 0x10], edi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
push 0x47c030
call fcn.004a79e0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
push 0x5ab660
call fcn.004a2e10
add esp, 4
test eax, eax
je 0x47b95a
push 0x18
call fcn.00420210
add esp, 4
mov dword [eax], 0x57cb1c
mov dword [eax + 4], 0x47aa60
mov dword [eax + 0x10], eax
mov dword [0x5ab658], eax
push 0x5ab660
call fcn.004a2f80
add esp, 4
jmp 0x47b95a
push 0x5ab660
call fcn.004a2e10
add esp, 4
test eax, eax
je 0x47b99a
push 0x18
call fcn.00420210
add esp, 4
mov dword [eax], 0x57cb1c
mov dword [eax + 4], 0x47aa60
mov dword [eax + 0x10], eax
mov dword [0x5ab658], eax
push 0x5ab660
call fcn.004a2f80
add esp, 4
jmp 0x47b99a