Function at 0x47b1f0
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 0x47b6a0
add esp, 8
mov ecx, dword [esp + 0x70]
cmp ecx, esi
je 0x47b227
test ecx, ecx
je 0x47b232
mov eax, dword [ecx]
add eax, 0x14
mov esi, ecx
jmp 0x47b22e
mov eax, dword [esp + 0x60]
add eax, 0x10
mov ecx, esi
call dword [eax]
lea esi, [esp + 0x48]
push edi
push esi
call fcn.0047b810
add esp, 8
mov ecx, dword [esp + 0x58]
cmp ecx, esi
je 0x47b255
test ecx, ecx
je 0x47b260
mov eax, dword [ecx]
add eax, 0x14
mov esi, ecx
jmp 0x47b25c
mov eax, dword [esp + 0x48]
add eax, 0x10
mov ecx, esi
call dword [eax]
cmp byte [0x5b2550], 0
jne 0x47b67d
mov eax, dword [ebp + 8]
mov byte [0x5b2550], 1
test eax, eax
je 0x47b336
push dword [eax]
call fcn.004a2e60
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 0x47b685
mov ebx, eax
cmp eax, 0xb
jae 0x47b2ce
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ebx, ebx
jne 0x47b2fa
jmp 0x47b305
mov dword [esp + 0x1c], esi
mov esi, ebx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
call fcn.00420cd0
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 0x47b316
mov eax, dword [esp + 0x18]
jmp 0x47b31a
lea eax, [esp + 0x11]
push eax
call fcn.004a74a0
add esp, 4
test byte [esp + 0x10], 1
je 0x47b336
push dword [esp + 0x18]
call fcn.00420e70
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 0x47b67d
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 0x47b68e
mov ebx, eax
cmp eax, 0xb
mov dword [esp + 0x1c], esi
jae 0x47b3aa
mov eax, ebx
add al, bl
mov byte [esp], al
lea edi, [esp + 1]
test ebx, ebx
jne 0x47b3cf
jmp 0x47b3da
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.00420cd0
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
add esi, 2
mov dword [esp], esi
mov esi, dword [esp + 0x1c]
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.0042ad20
add esp, 0xc
test byte [esp + 0x20], 1
je 0x47b425
push dword [esp + 0x28]
call fcn.00420e70
add esp, 4
test byte [esp], 1
je 0x47b437
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, eax
cmp eax, ecx
je 0x47b643
xor esi, esi
mov edi, ecx
xor ebx, ebx
jmp 0x47b481
inc ebx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
sub ecx, edi
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
add esi, 0xc
cmp ebx, ecx
jae 0x47b643
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
add edi, esi
mov ecx, esp
push edi
call fcn.00424040
movzx eax, byte [esp]
test al, 1
je 0x47b4c0
mov ecx, dword [esp + 4]
cmp ecx, 3
je 0x47b4cd
jmp case.0x47b538.103
mov ecx, eax
shr ecx, 1
cmp ecx, 3
jne case.0x47b538.103
lea ecx, [esp + 1]
test al, 1
je 0x47b4d9
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 3
mov dword [esp + 0x38], 0x589dad
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.0042b080
add esp, 0x10
test al, al
je case.0x47b538.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.0x47b538.103
jmp dword [eax*4 + 0x589d40]
push 7
jmp 0x47b620
push 4
push 0
push 7
call fcn.004a7ff0
add esp, 0xc
test eax, eax
je 0x47b628
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x34], eax
sub esp, 0x14
movaps xmm0, xmmword [0x589d30]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_logging.cpp
lea ecx, [esp + 0x34]
call fcn.0047ba20
push 0xd
push str.unsupported_
push dword [esp + 0x28]
call fcn.00415070
add esp, 0xc
mov ecx, esp
push ecx
push eax
call fcn.00411e60
add esp, 8
push 0x17
push str._in_ANDROID_LOG_TAGS__
push eax
call fcn.00415070
add esp, 0xc
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x1c]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push edi
push dword [esp + 0x38]
call fcn.00415070
add esp, 0xc
push 1
push 0x589df1
push eax
call fcn.00415070
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0047baf0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
jmp 0x47b628
push 6
jmp 0x47b620
push 2
jmp 0x47b620
push 3
jmp 0x47b620
push 4
jmp 0x47b620
push 5
nop dword [eax]
call fcn.004a76c0
add esp, 4
test byte [esp], 1
je 0x47b460
push dword [esp + 8]
call fcn.00420e70
add esp, 4
jmp 0x47b460
test edi, edi
je 0x47b67d
cmp eax, edi
jne 0x47b656
jmp 0x47b670
mov eax, esi
cmp esi, edi
je 0x47b66c
lea esi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x47b650
push dword [eax - 4]
call fcn.00420e70
add esp, 4
jmp 0x47b650
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
push eax
call fcn.00420e70
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00423df0
mov ecx, esp
call fcn.00423df0
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 [0x5b2660]
test al, al
je 0x47b775
mov eax, dword [0x5b2658]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47b6e6
cmp ecx, eax
je 0x47b6ef
mov dword [esi + 0x10], ecx
mov dword [eax + 0x10], 0
jmp 0x47b6fb
mov dword [esi + 0x10], 0
jmp 0x47b6fb
mov dword [esi + 0x10], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
movzx eax, byte [0x5b2660]
test al, al
je 0x47b7bb
mov ebx, dword [esp + 0x14]
mov edi, dword [0x5b2658]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], 0
cmp ecx, edi
je 0x47b72d
test ecx, ecx
je 0x47b736
mov eax, dword [ecx]
add eax, 0x14
jmp 0x47b734
mov eax, dword [edi]
add eax, 0x10
mov ecx, edi
call dword [eax]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x47b74d
cmp eax, ebx
je 0x47b756
mov dword [edi + 0x10], eax
mov dword [ebx + 0x10], 0
jmp 0x47b762
mov dword [edi + 0x10], 0
jmp 0x47b762
mov dword [edi + 0x10], edi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
push 0x47bda0
call fcn.004a76e0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
push 0x5b2660
call fcn.004a2af0
add esp, 4
test eax, eax
je 0x47b6ca
push 0x18
call fcn.00420cd0
add esp, 4
mov dword [eax], 0x584c34
mov dword [eax + 4], 0x47a940
mov dword [eax + 0x10], eax
mov dword [0x5b2658], eax
push 0x5b2660
call fcn.004a2c60
add esp, 4
jmp 0x47b6ca
push 0x5b2660
call fcn.004a2af0
add esp, 4
test eax, eax
je 0x47b70a
push 0x18
call fcn.00420cd0
add esp, 4
mov dword [eax], 0x584c34
mov dword [eax + 4], 0x47a940
mov dword [eax + 0x10], eax
mov dword [0x5b2658], eax
push 0x5b2660
call fcn.004a2c60
add esp, 4
jmp 0x47b70a