Function at 0x436670
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x158
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov dword [ebp - 0x144], eax
call fcn.00446e00
lea edx, [ebp - 0x28]
mov dword [esp], edx
call fcn.00432f90
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00432f90
pop eax
mov edi, dword [ebp + 0xc]
pop edx
lea edx, [ebp - 0x10]
push edi
push edx
call fcn.00432ca0
pop esi
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00438850
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp eax, 2
je 0x436750
mov eax, dword [ebp + 0xc]
push edx
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00432c60
mov edx, dword [ebp + 0xc]
pop eax
mov eax, dword [edx]
push eax
call fcn.00438850
mov edx, eax
mov dword [ebp - 0x24], eax
lea eax, [eax - 2]
add esp, 0x10
cmp eax, 1
jbe 0x436762
sub esp, 0xc
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push edx
mov eax, dword [eax]
push eax
push str.Asset_path__s_is_neither_a_directory_nor_file__type_d_.
push 0x4b3dd1
push 5
call fcn.0044c320
add esp, 0x20
sub esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.00432bc0
lea edx, [ebp - 0x20]
mov dword [esp], edx
call fcn.00432bc0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00432bc0
pop eax
mov eax, dword [ebp - 0x144]
push eax
call fcn.00446f00
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x28]
push ecx
push ecx
push eax
push edx
call fcn.00432c60
add esp, 0x10
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x38]
mov dword [ebp - 0x14c], edx
test edx, edx
je 0x4367c5
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x28]
xor esi, esi
xor ebx, ebx
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x140], eax
jmp 0x436793
inc esi
add ebx, 0xc
cmp esi, dword [ebp - 0x14c]
je 0x4367c5
mov edx, dword [ebp - 0x140]
push eax
push eax
push edi
mov eax, dword [ebx + edx]
push eax
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x436787
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x436806
mov edx, dword [ebp + 0x10]
lea eax, [esi + 1]
mov ebx, 1
mov dword [edx], eax
jmp 0x436717
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
add eax, 0x30
push esi
mov dword [ebp - 0x148], eax
push esi
push edx
push eax
call fcn.00444a20
mov ebx, dword [ebp + 0x10]
add esp, 0x10
test ebx, ebx
je 0x4367f2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov edi, str._system_framework_
cld
mov esi, dword [eax]
mov ecx, 0x12
repe cmpsb byte [esi], byte es:[edi]
je 0x436810
mov ebx, 1
jmp 0x436717
lea edi, [ebp - 0x14]
lea ebx, [ebp - 0x18]
push ecx
push ecx
push str._vendor_overlay_framework_
push edi
call fcn.004335e0
pop eax
mov esi, dword [ebp + 0xc]
pop edx
push esi
push ebx
call fcn.00433800
sub esp, 0xc
push ebx
push edi
call fcn.00432e80
add esp, 0x14
push ebx
call fcn.00432bc0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push 4
push ecx
call sub.msvcrt.dll__access
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43687a
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x436845
sub esp, 0xc
mov ebx, 1
push edi
call fcn.00432bc0
add esp, 0x10
jmp 0x436717
test eax, eax
jne 0x436864
sub esp, 0xc
lea edx, [ebp - 0x34]
push edx
call fcn.00432f90
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.00432f90
pop eax
pop edx
lea edx, [ebp - 0x34]
push edi
push edx
call fcn.00432c60
pop eax
mov esi, dword [ebp - 0x14]
push esi
call fcn.00438850
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp eax, 2
jne 0x436934
sub esp, 0xc
push str.ANDROID_DATA
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x4369f8
lea esi, [ebp - 0x1c]
push ecx
push ecx
push eax
push esi
call fcn.004335e0
pop eax
mov eax, dword [str.resource_cache]
pop edx
lea ebx, [ebp - 0x134]
push eax
push esi
call fcn.00432d40
add esp, 0xc
mov eax, dword [ebp - 0x14]
push 0xff
push eax
push ebx
call sub.msvcrt.dll_strncpy
add esp, 0x10
mov byte [ebp - 0x35], 0
mov eax, ebx
cmp byte [ebp - 0x134], 0x2f
jne 0x4369eb
inc eax
mov dl, byte [eax]
cmp dl, 0x2f
je 0x436916
mov ecx, eax
jmp 0x436926
mov dl, byte [eax + 1]
inc eax
test dl, dl
je 0x43696b
cmp dl, 0x2f
jne 0x436922
mov byte [eax], 0x40
jmp 0x436922
mov eax, dword [ebp - 0x14]
push eax
push str.failed_to_add_overlay_package__s_n
push 0x4b3dd1
push 5
call fcn.0044c320
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call fcn.00432bc0
lea edx, [ebp - 0x34]
mov dword [esp], edx
call fcn.00432bc0
add esp, 0x10
jmp 0x436864
push ebx
push ebx
push ecx
push esi
call fcn.00432d40
pop eax
pop edx
push str._idmap
push esi
call fcn.00433430
pop ecx
lea eax, [ebp - 0x2c]
pop ebx
push esi
push eax
call fcn.00432c60
mov dword [esp], esi
call fcn.00432bc0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x28]
push eax
push edx
mov edx, dword [ebp + 8]
push edx
call fcn.004361b0
add esp, 0x20
test al, al
je 0x4369d1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00436370
add esp, 0x10
test al, al
je 0x436934
lea edx, [ebp - 0x34]
push eax
push eax
mov eax, dword [ebp - 0x148]
push edx
push eax
call fcn.00444a20
add esp, 0x10
jmp 0x43694c
mov dl, byte [ebp - 0x134]
mov ecx, ebx
jmp 0x436926
push ebx
push str.ANDROID_DATA_not_set
push 0x4b3dd1
push str.root__NULL
call fcn.0044c290
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
push str.ANDROID_ROOT
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x436a6c
lea esi, [ebp - 0xc]
push ecx
push ecx
push eax
push esi
call fcn.004335e0
mov ebx, dword [str.framework_framework_res.apk]
pop eax
pop edx
push ebx
push esi
call fcn.00432d40
add esp, 0xc
mov ecx, dword [ebp + 8]
push 0
push esi
push ecx
call fcn.00436670
mov dword [esp], esi
mov bl, al
call fcn.00432bc0
and ebx, 0xff
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push ebx
push str.ANDROID_ROOT_not_set
push 0x4b3dd1
push str.root__NULL
call fcn.0044c290
nop
lea esi, [esi]
lea edi, [edi]