Function at 0x499210
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov edi, edx
mov dword [esi + 8], ecx
push dword [ebp + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, 0xfc1
sub ecx, eax
mov dword [esi + 0x5c], ecx
test ecx, ecx
jle 0x4996a9
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
mov edx, dword [ebp + 0xc]
test edx, edx
sete cl
mov dword [esi + 0x3c], edi
lea eax, [edi - 7]
cmp eax, 0xfffffffe
setb ch
xor eax, eax
or ch, cl
mov byte [esi + 3], ch
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov ecx, 0
jne 0x4992cf
lea eax, [esi + 0x20]
push dword [ebp + 0x10]
push edx
push str._s:_u_
push eax
call fcn.0049d930
add esp, 0x10
test byte [esi + 0x10], 1
je 0x4992b9
mov eax, dword [esi + 0x18]
mov byte [eax], 0
mov dword [esi + 0x14], 0
test byte [esi + 0x10], 1
je 0x4992b9
push dword [esi + 0x18]
call fcn.0041a380
add esp, 4
movsd xmm0, qword [esi + 0x20]
movsd qword [esi + 0x10], xmm0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov cl, byte [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ebx, esp
mov edx, ecx
shr dl, 1
test cl, 1
movzx edi, dl
cmovne edi, eax
mov eax, 0xfc2
mov ecx, dword [esi + 0x50]
sub eax, ecx
mov dword [esi + 0x4c], eax
mov eax, 0xfc5
sub eax, ecx
and eax, 0xfffffffc
call fcn.0049d69c
mov dword [esi + 0xc], esp
push 0xa
push dword [ebp + 0x14]
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
mov edx, eax
lea eax, [esi + 0x11]
mov dword [esi + 0x40], eax
test edx, edx
je 0x4994f8
mov dword [esi + 0x44], ebx
add edi, 1
mov dword [esi + 0x58], edi
mov eax, dword [esi + 8]
add eax, 0xffffffff
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 2]
cmp eax, 5
mov eax, 7
mov dword [esi + 0x54], ecx
cmovb eax, ecx
mov dword [esi + 0x64], eax
xor edi, edi
jmp 0x499390
push ecx
push edi
push dword [esi + 0x60]
push str._s_.s
push edx
push eax
call fcn.0049a220
add esp, 0x18
mov edi, eax
test eax, eax
mov eax, 0
cmovs edi, eax
add edi, ebx
mov eax, dword [esi + 0x50]
add eax, 1
push 0xa
mov dword [esi + 4], eax
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
mov edx, eax
test eax, eax
je 0x49946d
mov ebx, 0
mov eax, 0x569d56
test edi, edi
mov ecx, dword [esi + 4]
je 0x499421
mov eax, dword [esi + 0x58]
add eax, edx
add eax, edi
sub eax, ecx
cmp eax, dword [esi + 0x5c]
jle 0x499410
mov edi, edx
mov eax, 0x7fffffff
cmp dword [esi + 0x48], 3
ja 0x4993ca
mov eax, dword [esi + 8]
mov eax, dword [eax*4 + 0x569d64]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
call fcn.004a4520
add esp, 4
xor ebx, ebx
mov eax, 0x569d56
mov ecx, dword [esi + 4]
mov edx, edi
jmp 0x499421
test edi, edi
mov eax, 0x569d56
mov ebx, 0x569d44
cmovg eax, ebx
mov ebx, edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], edx
mov edi, edx
sub edi, ecx
mov edx, dword [esi + 0xc]
lea eax, [edx + ebx]
mov edx, dword [esi + 0x4c]
sub edx, ebx
cmp byte [esi + 3], 0
jne 0x499350
mov dword [esi + 0x68], eax
test byte [esi + 0x10], 1
lea ecx, [esi + 0x11]
je 0x49944f
mov ecx, dword [esi + 0x18]
push dword [esi + 4]
push edi
push ecx
push dword [esi + 0x60]
push str._s_s_.s
push edx
push dword [esi + 0x68]
call fcn.0049a220
add esp, 0x1c
jmp 0x499364
test edi, edi
mov eax, dword [esi + 4]
je 0x499553
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [esi + 0x58]
add ecx, edi
add ecx, eax
cmp ecx, dword [esi + 0x5c]
jle 0x4995ea
mov eax, 0x7fffffff
cmp dword [esi + 0x48], 3
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x44]
ja 0x4994a9
mov eax, dword [edx*4 + 0x569d64]
cmp dword [esi + 0x3c], 5
mov ecx, 7
cmovb ecx, dword [esi + 0x54]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
mov ebx, edx
call fcn.004a4520
mov edx, ebx
add esp, 4
mov eax, dword [esi + 4]
cmp byte [esi + 3], 0
jne 0x499506
jmp 0x49955f
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 8]
mov edi, ebx
cmp byte [esi + 3], 0
je 0x49955f
mov ebx, eax
lea ecx, [edx - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x49951c
mov eax, dword [edx*4 + 0x569d64]
mov ecx, dword [esi + 0x3c]
cmp ecx, 5
lea ecx, [ecx + 2]
mov edx, 7
cmovb edx, ecx
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], ebx
jmp 0x4995c3
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x44]
cmp byte [esi + 3], 0
jne 0x499506
mov ebx, edx
test byte [esi + 0x10], 1
je 0x49956d
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x40], ecx
push eax
push dword [esi + 0x40]
push str._s_s
push dword [esi + 0x4c]
push dword [esi + 0xc]
call fcn.0049a220
add esp, 0x14
lea ecx, [ebx - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x499598
mov eax, dword [ebx*4 + 0x569d64]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 7
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
call fcn.004a4520
add esp, 4
mov esp, edi
test byte [esi + 0x10], 1
je 0x4995e2
push dword [esi + 0x18]
call fcn.0041a380
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov eax, 0x569d44
mov ecx, 0x569d56
cmovg ecx, eax
mov eax, dword [esi + 0xc]
add eax, edi
mov edx, dword [esi + 0x4c]
sub edx, edi
cmp byte [esi + 3], 0
je 0x499626
push dword [esi + 4]
push 0xffffffffffffffff
push ecx
push str._s_.s
push edx
push eax
call fcn.0049a220
add esp, 0x18
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x3c]
jmp 0x499650
test byte [esi + 0x10], 1
mov edi, dword [esi + 0x3c]
je 0x499635
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x40], ebx
push dword [esi + 4]
push 0xffffffffffffffff
push dword [esi + 0x40]
push ecx
push str._s_s_.s
push edx
push eax
call fcn.0049a220
add esp, 0x1c
mov ecx, dword [esi + 8]
mov eax, 0x7fffffff
cmp dword [esi + 0x48], 3
ja 0x499662
mov eax, dword [ecx*4 + 0x569d64]
cmp edi, 5
mov ecx, 7
cmovb ecx, dword [esi + 0x54]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x20]
push eax
call fcn.004a4520
add esp, 4
mov edi, dword [esi + 0x44]
jmp 0x4995cf
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x60]
push dword [ebp + 0xc]
push edi
call 0x499b60
add esp, 8
mov ecx, dword [esp + 0x70]
cmp edi, ecx
je 0x4996e5
mov eax, 5
test ecx, ecx
jne 0x4996ea
jmp 0x4996ef
mov eax, 4
mov edx, dword [ecx]
call dword [edx + eax*4]
lea edi, [esp + 0x48]
push esi
push edi
call fcn.00499cc0
add esp, 8
mov ecx, dword [esp + 0x58]
cmp edi, ecx
je 0x49971c
mov eax, 5
test ecx, ecx
jne 0x499721
cmp byte [0x5877f8], 0
je 0x499733
jmp 0x499b3d
mov eax, 4
mov edx, dword [ecx]
call dword [edx + eax*4]
cmp byte [0x5877f8], 0
jne 0x499b3d
mov eax, dword [ebp + 8]
mov byte [0x5877f8], 1
test eax, eax
je 0x4997fc
push dword [eax]
call fcn.0049c410
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 0x499b45
mov ebx, eax
cmp eax, 0xb
jae 0x499794
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ebx, ebx
jne 0x4997c0
jmp 0x4997cb
mov dword [esp + 0x1c], esi
mov esi, ebx
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
call fcn.0041a1e0
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
or ebx, 1
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 0x4997dc
mov eax, dword [esp + 0x18]
jmp 0x4997e0
lea eax, [esp + 0x11]
push eax
call fcn.004a4160
add esp, 4
test byte [esp + 0x10], 1
je 0x4997fc
push dword [esp + 0x18]
call fcn.0041a380
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 0x499b3d
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 0x499b4e
mov ebx, eax
cmp eax, 0xb
mov dword [esp + 0x1c], esi
jae 0x499870
mov eax, ebx
add al, bl
mov byte [esp], al
lea edi, [esp + 1]
test ebx, ebx
jne 0x499895
jmp 0x4998a0
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.0041a1e0
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
or esi, 1
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.00462070
add esp, 0xc
test byte [esp + 0x20], 1
je 0x4998eb
push dword [esp + 0x28]
call fcn.0041a380
add esp, 4
test byte [esp], 1
je 0x4998fd
push dword [esp + 8]
call fcn.0041a380
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, eax
cmp eax, ecx
je 0x499b03
xor esi, esi
mov edi, ecx
xor ebx, ebx
jmp 0x499943
add ebx, 1
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 0x499b03
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
add edi, esi
mov ecx, esp
push edi
call fcn.0041d7e0
movzx eax, byte [esp]
test al, 1
je 0x499980
mov ecx, dword [esp + 4]
cmp ecx, 3
je 0x49998d
jmp case.0x4999f8.103
mov ecx, eax
shr ecx, 1
cmp ecx, 3
jne case.0x4999f8.103
lea ecx, [esp + 1]
test al, 1
je 0x499999
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 3
mov dword [esp + 0x38], 0x569cad
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.00462460
add esp, 0x10
test al, al
je case.0x4999f8.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.0x4999f8.103
jmp dword [eax*4 + 0x569c40]
push 7
jmp 0x499ae0
push 4
push 0
push 7
call fcn.00531430
add esp, 0xc
test eax, eax
je 0x499ae8
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 [0x569c30]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_logging.cpp
lea ecx, [esp + 0x34]
call fcn.00499ec0
push 0xd
push str.unsupported_
push dword [esp + 0x28]
call fcn.0040e760
add esp, 0xc
mov ecx, esp
push ecx
push eax
call fcn.00473660
add esp, 8
push 0x17
push str._in_ANDROID_LOG_TAGS__
push eax
call fcn.0040e760
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.0040e760
add esp, 0xc
push 1
push 0x569cf1
push eax
call fcn.0040e760
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00499f90
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
jmp 0x499ae8
push 6
jmp 0x499ae0
push 2
jmp 0x499ae0
push 3
jmp 0x499ae0
push 4
jmp 0x499ae0
push 5
nop dword [eax]
call fcn.004a4390
add esp, 4
test byte [esp], 1
je 0x499920
push dword [esp + 8]
call fcn.0041a380
add esp, 4
jmp 0x499920
test edi, edi
je 0x499b3d
cmp eax, edi
jne 0x499b16
mov eax, edi
jmp 0x499b30
mov eax, esi
cmp esi, edi
je 0x499b2c
lea esi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x499b10
push dword [eax - 4]
call fcn.0041a380
add esp, 4
jmp 0x499b10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
push eax
call fcn.0041a380
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0041d590
mov ecx, esp
call fcn.0041d590
nop word cs:[eax + eax]
nop
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
mov al, byte [0x587908]
test al, al
je 0x499c32
mov eax, dword [0x587900]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x499ba4
cmp eax, ecx
je 0x499bad
mov dword [esi + 0x10], ecx
mov dword [eax + 0x10], 0
jmp 0x499bb9
mov dword [esi + 0x10], 0
jmp 0x499bb9
mov dword [esi + 0x10], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov al, byte [0x587908]
test al, al
je 0x499c78
mov ebx, dword [esp + 0x14]
mov edi, dword [0x587900]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], 0
cmp edi, ecx
je 0x499be9
mov eax, 5
test ecx, ecx
jne 0x499bee
jmp 0x499bf3
mov eax, 4
mov edx, dword [ecx]
call dword [edx + eax*4]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x499c0a
cmp ebx, eax
je 0x499c13
mov dword [edi + 0x10], eax
mov dword [ebx + 0x10], 0
jmp 0x499c1f
mov dword [edi + 0x10], 0
jmp 0x499c1f
mov dword [edi + 0x10], edi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
push 0x49a250
call fcn.004a43b0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
push 0x587908
call fcn.0049c0a0
add esp, 4
test eax, eax
je 0x499b88
push 0x18
call fcn.0041a1e0
add esp, 4
mov dword [eax], 0x569db0
mov dword [eax + 4], 0x498e00
mov dword [eax + 0x10], eax
mov dword [0x587900], eax
push 0x587908
call fcn.0049c210
add esp, 4
jmp 0x499b88
push 0x587908
call fcn.0049c0a0
add esp, 4
test eax, eax
je 0x499bc6
push 0x18
call fcn.0041a1e0
add esp, 4
mov dword [eax], 0x569db0
mov dword [eax + 4], 0x498e00
mov dword [eax + 0x10], eax
mov dword [0x587900], eax
push 0x587908
call fcn.0049c210
add esp, 4
jmp 0x499bc6