Function at 0x426040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov esi, esp
mov ebx, 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 edi, eax
mov eax, 0xfc1
sub eax, edi
mov dword [esi + 0x54], eax
test eax, eax
jle 0x4264d4
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
sete cl
mov dword [esi + 0x1c], ebx
lea edx, [ebx - 5]
cmp edx, 1
seta dl
mov dword [esi + 0x3c], 0
or dl, cl
mov byte [esi + 3], dl
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov ebx, 0
jne 0x426106
lea ecx, [esi + 0x20]
push dword [ebp + 0x10]
push eax
push str._s:_u_
push ecx
call fcn.00480880
add esp, 0x10
test byte [esi + 0x10], 1
je 0x4260ed
mov eax, dword [esi + 0x18]
mov byte [eax], 0
mov dword [esi + 0x14], 0
test byte [esi + 0x10], 1
je 0x4260ed
push dword [esi + 0x18]
call fcn.00405e10
add esp, 4
movsd xmm0, qword [esi + 0x20]
movsd qword [esi + 0x10], xmm0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov bl, byte [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], esp
mov eax, 0xfc2
sub eax, edi
mov dword [esi + 0x48], eax
mov eax, 0xfc5
sub eax, edi
and eax, 0xfffffffc
call fcn.0040f658
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
test eax, eax
je 0x426320
mov edx, eax
mov eax, ebx
shr al, 1
test bl, 1
movzx eax, al
mov ecx, dword [esi + 0x3c]
cmove ecx, eax
add ecx, 1
mov dword [esi + 0x3c], ecx
lea eax, [esi + 0x11]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
add eax, 0xffffffff
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 2]
cmp eax, 5
mov eax, 7
mov dword [esi + 0x50], ecx
cmovb eax, ecx
mov dword [esi + 0x58], eax
xor edi, edi
jmp 0x4261c0
push dword [esi + 4]
push edi
push eax
push str._s_.s
push edx
push ecx
call fcn.00427040
add esp, 0x18
mov edi, eax
test eax, eax
mov eax, 0
cmovs edi, eax
add edi, ebx
mov eax, dword [esi + 0x60]
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 0x42629a
mov ebx, 0
mov eax, 0x4b1036
test edi, edi
mov ecx, dword [esi + 4]
je 0x426251
mov eax, dword [esi + 0x3c]
add eax, edx
add eax, edi
sub eax, ecx
cmp eax, dword [esi + 0x54]
jle 0x426240
mov edi, edx
mov eax, 0x7fffffff
cmp dword [esi + 0x44], 3
ja 0x4261fa
mov eax, dword [esi + 8]
mov eax, dword [eax*4 + 0x4b1044]
mov dword [esi + 0x20], 0x1c
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x58]
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.0040a7b0
add esp, 4
xor ebx, ebx
mov eax, 0x4b1036
mov ecx, dword [esi + 4]
mov edx, edi
jmp 0x426251
test edi, edi
mov eax, 0x4b1036
mov ebx, 0x4b1024
cmovg eax, ebx
mov ebx, edi
mov dword [esi + 4], ecx
mov dword [esi + 0x60], edx
mov edi, edx
sub edi, ecx
mov ecx, dword [esi + 0xc]
add ecx, ebx
mov edx, dword [esi + 0x48]
sub edx, ebx
cmp byte [esi + 3], 0
jne 0x426180
mov dword [esi + 0x5c], ecx
test byte [esi + 0x10], 1
lea ecx, [esi + 0x11]
je 0x42627e
mov ecx, dword [esi + 0x18]
push dword [esi + 4]
push edi
push ecx
push eax
push str._s_s_.s
push edx
push dword [esi + 0x5c]
call fcn.00427040
add esp, 0x1c
jmp 0x426194
test edi, edi
mov ecx, dword [esi + 4]
je 0x42637a
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [esi + 0x3c]
add ecx, edi
add ecx, eax
cmp ecx, dword [esi + 0x54]
jle 0x426412
mov eax, 0x7fffffff
cmp dword [esi + 0x44], 3
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
ja 0x4262d6
mov eax, dword [edi*4 + 0x4b1044]
cmp ebx, 5
mov ecx, 7
cmovb ecx, dword [esi + 0x50]
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.0040a7b0
add esp, 4
mov ecx, dword [esi + 4]
cmp byte [esi + 3], 0
jne 0x42632f
jmp 0x426386
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
mov ecx, dword [ebp + 0x14]
cmp byte [esi + 3], 0
je 0x426386
mov dword [esi + 4], ecx
lea ecx, [edi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x426346
mov eax, dword [edi*4 + 0x4b1044]
cmp ebx, 5
lea ecx, [ebx + 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 eax, dword [esi + 4]
jmp 0x4263e5
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x1c]
cmp byte [esi + 3], 0
jne 0x42632f
test byte [esi + 0x10], 1
je 0x426391
mov eax, dword [esi + 0x18]
jmp 0x426394
lea eax, [esi + 0x11]
push ecx
push eax
push str._s_s
push dword [esi + 0x48]
push dword [esi + 0xc]
call fcn.00427040
add esp, 0x14
lea ecx, [edi - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x4263bd
mov eax, dword [edi*4 + 0x4b1044]
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.0040a7b0
add esp, 4
mov edi, dword [esi + 0x40]
mov esp, edi
test byte [esi + 0x10], 1
je 0x42640a
push dword [esi + 0x18]
call fcn.00405e10
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov eax, 0x4b1024
mov ecx, 0x4b1036
cmovg ecx, eax
mov eax, dword [esi + 0xc]
add eax, edi
mov edx, dword [esi + 0x48]
sub edx, edi
cmp byte [esi + 3], 0
mov ebx, dword [esi + 0x1c]
je 0x426451
push dword [esi + 4]
push 0xffffffffffffffff
push ecx
push str._s_.s
push edx
push eax
call fcn.00427040
add esp, 0x18
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x40]
jmp 0x42647e
test byte [esi + 0x10], 1
mov edi, dword [esi + 0x40]
je 0x426463
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x4c], ebx
mov ebx, dword [esi + 0x1c]
push dword [esi + 4]
push 0xffffffffffffffff
push dword [esi + 0x4c]
push ecx
push str._s_s_.s
push edx
push eax
call fcn.00427040
add esp, 0x1c
mov ecx, dword [esi + 8]
mov eax, 0x7fffffff
cmp dword [esi + 0x44], 3
ja 0x426490
mov eax, dword [ecx*4 + 0x4b1044]
cmp ebx, 5
mov ecx, 7
cmovb ecx, dword [esi + 0x50]
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.0040a7b0
add esp, 4
jmp 0x4263f7
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop dword [eax]
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 0x426980
add esp, 8
mov ecx, dword [esp + 0x70]
cmp edi, ecx
je 0x426515
test ecx, ecx
je 0x42651a
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x42651a
mov eax, dword [ecx]
call dword [eax + 0x10]
lea edi, [esp + 0x48]
push esi
push edi
call fcn.00426ae0
add esp, 8
mov ecx, dword [esp + 0x58]
cmp edi, ecx
je 0x426547
test ecx, ecx
je 0x426539
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [0x4be6a0], 0
je 0x426559
jmp 0x42695d
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [0x4be6a0], 0
jne 0x42695d
mov eax, dword [ebp + 8]
mov byte [0x4be6a0], 1
test eax, eax
je 0x426626
push dword [eax]
call fcn.00417f00
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 0x426965
mov ebx, eax
mov dword [esp + 0x1c], esi
cmp eax, 0xb
jae 0x4265c2
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea esi, [esp + 0x10]
lea edi, [esp + 0x11]
test ebx, ebx
jne 0x4265e8
jmp 0x4265f6
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.00405c70
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
or esi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x10]
push ebx
push dword [esp + 0x20]
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 0x426607
mov esi, dword [esp + 0x18]
jmp 0x42660a
add esi, 1
push esi
call fcn.0040a3f0
add esp, 4
test byte [esp + 0x10], 1
je 0x426626
push dword [esp + 0x18]
call fcn.00405e10
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 0x42695d
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 0x42696e
mov ebx, eax
cmp eax, 0xb
mov dword [esp + 0x1c], esi
jae 0x42669a
mov eax, ebx
add al, bl
mov byte [esp], al
lea edi, [esp + 1]
test ebx, ebx
jne 0x4266bf
jmp 0x4266ca
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.00405c70
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
mov byte [esp + 0x22], 0
lea eax, [esp + 0x20]
mov edx, esp
lea ecx, [esp + 0x10]
push eax
push edx
push ecx
call fcn.00478300
add esp, 0xc
test byte [esp + 0x20], 1
je 0x42671a
push dword [esp + 0x28]
call fcn.00405e10
add esp, 4
test byte [esp], 1
je 0x42672c
push dword [esp + 8]
call fcn.00405e10
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, eax
cmp eax, ecx
je 0x426923
xor esi, esi
mov edi, ecx
xor ebx, ebx
jmp 0x426773
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 0x426923
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
add edi, esi
mov ecx, esp
push edi
call fcn.0041d330
movzx eax, byte [esp]
test al, 1
jne 0x4267b0
and al, 0xfe
lea ecx, [esp + 1]
cmp al, 6
je 0x4267bb
jmp case.0x42681a.103
cmp dword [esp + 4], 3
jne case.0x42681a.103
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 3
mov dword [esp + 0x38], 0x4b0f8d
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.004785c0
add esp, 0x10
test al, al
je case.0x42681a.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.0x42681a.103
jmp dword [eax*4 + 0x4b0f20]
push 7
jmp 0x426900
push 4
push 0
push 7
call fcn.00422010
add esp, 0xc
test eax, eax
je 0x426908
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 [0x4b0f10]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_logging.cpp
lea ecx, [esp + 0x34]
call fcn.00426ce0
push 0xd
push str.unsupported_
push dword [esp + 0x28]
call fcn.00413600
add esp, 0xc
mov ecx, esp
push ecx
push eax
call fcn.004271c0
add esp, 8
push 0x17
push str._in_ANDROID_LOG_TAGS__
push eax
call fcn.00413600
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.00413600
add esp, 0xc
push 1
push 0x4b0fd1
push eax
call fcn.00413600
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00426db0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
jmp 0x426908
push 6
jmp 0x426900
push 2
jmp 0x426900
push 3
jmp 0x426900
push 4
jmp 0x426900
push 5
nop dword [eax]
call fcn.0040a620
add esp, 4
test byte [esp], 1
je 0x426750
push dword [esp + 8]
call fcn.00405e10
add esp, 4
jmp 0x426750
test edi, edi
je 0x42695d
cmp eax, edi
jne 0x426936
mov eax, edi
jmp 0x426950
mov eax, esi
cmp edi, esi
je 0x42694c
lea esi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x426930
push dword [eax - 4]
call fcn.00405e10
add esp, 4
jmp 0x426930
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
push eax
call fcn.00405e10
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0041d0e0
mov ecx, esp
call fcn.0041d0e0
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 [0x4be7b0]
test al, al
je 0x426a4d
mov eax, dword [0x4be7a8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4269c4
cmp eax, ecx
je 0x4269cd
mov dword [esi + 0x10], ecx
mov dword [eax + 0x10], 0
jmp 0x4269d9
mov dword [esi + 0x10], 0
jmp 0x4269d9
mov dword [esi + 0x10], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov al, byte [0x4be7b0]
test al, al
je 0x426a93
mov ebx, dword [esp + 0x14]
mov edi, dword [0x4be7a8]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], 0
cmp edi, ecx
je 0x426a09
test ecx, ecx
je 0x426a0e
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x426a0e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x426a25
cmp ebx, eax
je 0x426a2e
mov dword [edi + 0x10], eax
mov dword [ebx + 0x10], 0
jmp 0x426a3a
mov dword [edi + 0x10], 0
jmp 0x426a3a
mov dword [edi + 0x10], edi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
push 0x427070
call fcn.0040a640
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
push 0x4be7b0
call fcn.00417d90
add esp, 4
test eax, eax
je 0x4269a8
push 0x18
call fcn.00405c70
add esp, 4
mov dword [eax], 0x4b1090
mov dword [eax + 4], 0x425b90
mov dword [eax + 0x10], eax
mov dword [0x4be7a8], eax
push 0x4be7b0
call fcn.00417e20
add esp, 4
jmp 0x4269a8
push 0x4be7b0
call fcn.00417d90
add esp, 4
test eax, eax
je 0x4269e6
push 0x18
call fcn.00405c70
add esp, 4
mov dword [eax], 0x4b1090
mov dword [eax + 4], 0x425b90
mov dword [eax + 0x10], eax
mov dword [0x4be7a8], eax
push 0x4be7b0
call fcn.00417e20
add esp, 4
jmp 0x4269e6