Function at 0x4dd420
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, dword [ebp + 0x10]
push dword [ebp + 0xc]
call 0x4dd910
add esp, 4
push esi
call fcn.004dda20
add esp, 4
cmp byte [0x5da144], 0
jne 0x4dd8ef
mov eax, dword [ebp + 8]
mov byte [0x5da144], 1
test eax, eax
je 0x4dd50c
push dword [eax]
call fcn.00522170
add esp, 4
mov esi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
push eax
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x4dd8f7
mov ebx, eax
cmp eax, 0xb
jae 0x4dd4b1
mov eax, ebx
lea edi, [esp + 0x11]
add al, bl
test ebx, ebx
mov byte [esp + 0x10], al
jne 0x4dd4dd
jmp 0x4dd4e8
mov dword [esp + 0x20], esi
mov esi, ebx
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
call fcn.004fc150
add esp, 4
or ebx, 1
mov dword [esp + 0x18], eax
mov edi, eax
mov dword [esp + 0x10], ebx
mov ebx, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
push ebx
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x10]
mov byte [edi + ebx], 0
push eax
call fcn.004dd180
add esp, 4
test byte [esp + 0x10], 1
je 0x4dd50c
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
push str.ANDROID_LOG_TAGS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x4dd8ef
mov esi, eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push eax
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x4dd900
mov ebx, eax
cmp eax, 0xb
mov dword [esp + 0x20], esi
jae 0x4dd568
mov eax, ebx
lea edi, [esp + 1]
add al, bl
test ebx, ebx
mov byte [esp], al
jne 0x4dd58d
jmp 0x4dd598
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.004fc150
add esp, 4
or esi, 1
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 4], ebx
push ebx
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
mov byte [edi + ebx], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov word [esp + 0x28], 0x2002
mov byte [esp + 0x2a], 0
mov edx, esp
lea ecx, [esp + 0x10]
push eax
push edx
push ecx
call fcn.004deb20
add esp, 0xc
test byte [esp + 0x28], 1
je 0x4dd5e8
push dword [esp + 0x30]
call fcn.004fc300
add esp, 4
test byte [esp], 1
je 0x4dd5fa
push dword [esp + 8]
call fcn.004fc300
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4dd8b0
xor ebx, ebx
xor esi, esi
jmp 0x4dd800
mov dword [0x580314], 0
test byte [esp], 1
jne 0x4dd883
jmp 0x4dd88f
mov dword [0x580314], 4
test byte [esp], 1
jne 0x4dd883
jmp 0x4dd88f
mov dword [0x580314], 1
test byte [esp], 1
jne 0x4dd883
jmp 0x4dd88f
mov dword [0x580314], 3
test byte [esp], 1
jne 0x4dd883
jmp 0x4dd88f
mov dword [0x580314], 2
test byte [esp], 1
jne 0x4dd883
jmp 0x4dd88f
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
push 0xa0
call fcn.004fc150
add esp, 4
mov edi, eax
lea ecx, [eax + 0x38]
lea eax, [eax + 4]
mov dword [edi], 0x5bc6c8
mov dword [esp + 0x24], eax
mov dword [edi + 0x38], 0x5bc6dc
push eax
call fcn.004e3fe0
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0xffffffff
mov dword [edi], 0x5bf668
mov dword [edi + 0x38], 0x5bf67c
call fcn.00567a20
mov dword [edi + 4], 0x5bf3b8
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x34], 0x10
mov dword [edi + 0x88], 0x5b4896
mov dword [edi + 0x8c], 0x14e
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 6
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0xffffffff
mov dword [esp + 0x28], edi
push 0xd
push str.unsupported_
push edi
call fcn.0056cec0
add esp, 0xc
movzx ecx, byte [esp]
test cl, 1
je 0x4dd77f
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x4dd785
shr ecx, 1
lea edx, [esp + 1]
push ecx
push edx
push eax
call fcn.0056cec0
add esp, 0xc
push 0x17
push str._in_ANDROID_LOG_TAGS__
push eax
call fcn.0056cec0
add esp, 0xc
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
push edi
call sub.msvcrt.dll_strlen
add esp, 4
push eax
push edi
push dword [esp + 0x2c]
call fcn.0056cec0
add esp, 0xc
push 1
push 0x5b48c8
push eax
call fcn.0056cec0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
test byte [esp], 1
jne 0x4dd883
jmp 0x4dd88f
add edi, ebx
mov ecx, esp
push edi
call fcn.00556b50
movzx eax, byte [esp]
test al, 1
je 0x4dd820
mov eax, dword [esp + 4]
cmp eax, 3
je 0x4dd827
jmp case.0x4dd857.103
shr eax, 1
cmp eax, 3
jne case.0x4dd857.103
push 0x5b4882
lea eax, [esp + 4]
push eax
call fcn.004dedc0
add esp, 8
test al, al
je case.0x4dd857.103
test byte [esp], 1
lea eax, [esp + 1]
je 0x4dd84b
mov eax, dword [esp + 8]
movsx eax, byte [eax + 2]
add eax, 0xffffff9c
cmp eax, 0x13
ja case.0x4dd857.103
jmp dword [eax*4 + 0x5b47d8]
mov dword [0x580314], 5
test byte [esp], 1
jne 0x4dd883
jmp 0x4dd88f
cmp dword [0x580314], 6
jle 0x4dd690
test byte [esp], 1
je 0x4dd88f
push dword [esp + 8]
call fcn.004fc300
add esp, 4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
add ebx, 0xc
mov ecx, eax
sub ecx, edi
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
cmp esi, ecx
jb 0x4dd800
test edi, edi
je 0x4dd8ef
cmp edi, eax
je 0x4dd8e0
nop dword [eax + eax]
test byte [eax - 0xc], 1
lea esi, [eax - 0xc]
je 0x4dd8d4
push dword [eax - 4]
call fcn.004fc300
add esp, 4
cmp edi, esi
mov eax, esi
jne 0x4dd8c0
mov eax, dword [esp + 0x10]
jmp 0x4dd8e2
mov eax, edi
mov dword [esp + 0x14], edi
push eax
call fcn.004fc300
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0053ebb0
mov ecx, esp
call fcn.0053ebb0
nop word [eax + eax]
push ebx
push edi
push esi
mov edi, dword [esp + 0x10]
mov al, byte [0x5da268]
test al, al
je 0x4dd994
mov esi, dword [0x5da260]
mov ecx, esi
call fcn.004fb4c0
mov al, byte [0x5da278]
test al, al
je 0x4dd9d0
mov ebx, dword [0x5da270]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x10], 0
cmp ebx, ecx
je 0x4dd959
test ecx, ecx
je 0x4dd95e
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4dd95e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4dd975
cmp edi, eax
je 0x4dd97e
mov dword [ebx + 0x10], eax
mov dword [edi + 0x10], 0
jmp 0x4dd98a
mov dword [ebx + 0x10], 0
jmp 0x4dd98a
mov dword [ebx + 0x10], ebx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
mov ecx, esi
pop esi
pop edi
pop ebx
jmp fcn.004fb560
push 0x5da268
call fcn.004dfcb0
add esp, 4
test eax, eax
je 0x4dd920
push 4
call fcn.004fc150
add esp, 4
mov dword [eax], 0
mov dword [0x5da260], eax
push 0x5da268
call fcn.004dfd40
add esp, 4
jmp 0x4dd920
push 0x5da278
call fcn.004dfcb0
add esp, 4
test eax, eax
je 0x4dd93a
push 0x18
call fcn.004fc150
add esp, 4
mov dword [eax], 0x5befc0
mov dword [eax + 4], fcn.004dd250
mov dword [eax + 0x10], eax
mov dword [0x5da270], eax
push 0x5da278
call fcn.004dfd40
add esp, 4
jmp 0x4dd93a