Function at 0x41b620
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 0x41bab9
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 0x41b6df
lea eax, [esi + 0x20]
push dword [ebp + 0x10]
push edx
push str._s:_u_
push eax
call fcn.0041c950
add esp, 0x10
test byte [esi + 0x10], 1
je 0x41b6c9
mov eax, dword [esi + 0x18]
mov byte [eax], 0
mov dword [esi + 0x14], 0
test byte [esi + 0x10], 1
je 0x41b6c9
push dword [esi + 0x18]
call fcn.0046a990
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.0048a284
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 0x41b908
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 0x41b7a0
push ecx
push edi
push dword [esi + 0x60]
push str._s_.s
push edx
push eax
call fcn.0041c630
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 0x41b87d
mov ebx, 0
mov eax, 0x4cb676
test edi, edi
mov ecx, dword [esi + 4]
je 0x41b831
mov eax, dword [esi + 0x58]
add eax, edx
add eax, edi
sub eax, ecx
cmp eax, dword [esi + 0x5c]
jle 0x41b820
mov edi, edx
mov eax, 0x7fffffff
cmp dword [esi + 0x48], 3
ja 0x41b7da
mov eax, dword [esi + 8]
mov eax, dword [eax*4 + 0x4cb684]
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.00489ad0
add esp, 4
xor ebx, ebx
mov eax, 0x4cb676
mov ecx, dword [esi + 4]
mov edx, edi
jmp 0x41b831
test edi, edi
mov eax, 0x4cb676
mov ebx, 0x4cb664
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 0x41b760
mov dword [esi + 0x68], eax
test byte [esi + 0x10], 1
lea ecx, [esi + 0x11]
je 0x41b85f
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.0041c630
add esp, 0x1c
jmp 0x41b774
test edi, edi
mov eax, dword [esi + 4]
je 0x41b963
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 0x41b9fa
mov eax, 0x7fffffff
cmp dword [esi + 0x48], 3
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x44]
ja 0x41b8b9
mov eax, dword [edx*4 + 0x4cb684]
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.00489ad0
mov edx, ebx
add esp, 4
mov eax, dword [esi + 4]
cmp byte [esi + 3], 0
jne 0x41b916
jmp 0x41b96f
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 8]
mov edi, ebx
cmp byte [esi + 3], 0
je 0x41b96f
mov ebx, eax
lea ecx, [edx - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x41b92c
mov eax, dword [edx*4 + 0x4cb684]
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 0x41b9d3
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x44]
cmp byte [esi + 3], 0
jne 0x41b916
mov ebx, edx
test byte [esi + 0x10], 1
je 0x41b97d
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.0041c630
add esp, 0x14
lea ecx, [ebx - 1]
mov eax, 0x7fffffff
cmp ecx, 3
ja 0x41b9a8
mov eax, dword [ebx*4 + 0x4cb684]
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.00489ad0
add esp, 4
mov esp, edi
test byte [esi + 0x10], 1
je 0x41b9f2
push dword [esi + 0x18]
call fcn.0046a990
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov eax, 0x4cb664
mov ecx, 0x4cb676
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 0x41ba36
push dword [esi + 4]
push 0xffffffffffffffff
push ecx
push str._s_.s
push edx
push eax
call fcn.0041c630
add esp, 0x18
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x3c]
jmp 0x41ba60
test byte [esi + 0x10], 1
mov edi, dword [esi + 0x3c]
je 0x41ba45
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.0041c630
add esp, 0x1c
mov ecx, dword [esi + 8]
mov eax, 0x7fffffff
cmp dword [esi + 0x48], 3
ja 0x41ba72
mov eax, dword [ecx*4 + 0x4cb684]
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.00489ad0
add esp, 4
mov edi, dword [esi + 0x44]
jmp 0x41b9df
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 fcn.0041bf70
add esp, 8
mov ecx, dword [esp + 0x70]
cmp edi, ecx
je 0x41baf5
mov eax, 5
test ecx, ecx
jne 0x41bafa
jmp 0x41baff
mov eax, 4
mov edx, dword [ecx]
call dword [edx + eax*4]
lea edi, [esp + 0x48]
push esi
push edi
call fcn.0041c0d0
add esp, 8
mov ecx, dword [esp + 0x58]
cmp edi, ecx
je 0x41bb2c
mov eax, 5
test ecx, ecx
jne 0x41bb31
cmp byte [0x4e01d0], 0
je 0x41bb43
jmp 0x41bf4d
mov eax, 4
mov edx, dword [ecx]
call dword [edx + eax*4]
cmp byte [0x4e01d0], 0
jne 0x41bf4d
mov eax, dword [ebp + 8]
mov byte [0x4e01d0], 1
test eax, eax
je 0x41bc0c
push dword [eax]
call fcn.00489380
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 0x41bf55
mov ebx, eax
cmp eax, 0xb
jae 0x41bba4
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ebx, ebx
jne 0x41bbd0
jmp 0x41bbdb
mov dword [esp + 0x1c], esi
mov esi, ebx
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
call fcn.0046a7f0
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 0x41bbec
mov eax, dword [esp + 0x18]
jmp 0x41bbf0
lea eax, [esp + 0x11]
push eax
call fcn.00489710
add esp, 4
test byte [esp + 0x10], 1
je 0x41bc0c
push dword [esp + 0x18]
call fcn.0046a990
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 0x41bf4d
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 0x41bf5e
mov ebx, eax
cmp eax, 0xb
mov dword [esp + 0x1c], esi
jae 0x41bc80
mov eax, ebx
add al, bl
mov byte [esp], al
lea edi, [esp + 1]
test ebx, ebx
jne 0x41bca5
jmp 0x41bcb0
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.0046a7f0
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.0048a2c0
add esp, 0xc
test byte [esp + 0x20], 1
je 0x41bcfb
push dword [esp + 0x28]
call fcn.0046a990
add esp, 4
test byte [esp], 1
je 0x41bd0d
push dword [esp + 8]
call fcn.0046a990
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, eax
cmp eax, ecx
je 0x41bf13
xor esi, esi
mov edi, ecx
xor ebx, ebx
jmp 0x41bd53
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 0x41bf13
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
add edi, esi
mov ecx, esp
push edi
call fcn.0046ddd0
movzx eax, byte [esp]
test al, 1
je 0x41bd90
mov ecx, dword [esp + 4]
cmp ecx, 3
je 0x41bd9d
jmp case.0x41be08.103
mov ecx, eax
shr ecx, 1
cmp ecx, 3
jne case.0x41be08.103
lea ecx, [esp + 1]
test al, 1
je 0x41bda9
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 3
mov dword [esp + 0x38], 0x4cb5cd
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.0048a6b0
add esp, 0x10
test al, al
je case.0x41be08.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.0x41be08.103
jmp dword [eax*4 + 0x4cb560]
push 7
jmp 0x41bef0
push 4
push 0
push 7
call fcn.0048b380
add esp, 0xc
test eax, eax
je 0x41bef8
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 [0x4cb550]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.system_libbase_logging.cpp
lea ecx, [esp + 0x34]
call fcn.0041c2d0
push 0xd
push str.unsupported_
push dword [esp + 0x28]
call fcn.00404100
add esp, 0xc
mov ecx, esp
push ecx
push eax
call fcn.00410d70
add esp, 8
push 0x17
push str._in_ANDROID_LOG_TAGS__
push eax
call fcn.00404100
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.00404100
add esp, 0xc
push 1
push 0x4cb611
push eax
call fcn.00404100
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0041c3a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
jmp 0x41bef8
push 6
jmp 0x41bef0
push 2
jmp 0x41bef0
push 3
jmp 0x41bef0
push 4
jmp 0x41bef0
push 5
nop dword [eax]
call fcn.00489940
add esp, 4
test byte [esp], 1
je 0x41bd30
push dword [esp + 8]
call fcn.0046a990
add esp, 4
jmp 0x41bd30
test edi, edi
je 0x41bf4d
cmp eax, edi
jne 0x41bf26
mov eax, edi
jmp 0x41bf40
mov eax, esi
cmp esi, edi
je 0x41bf3c
lea esi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x41bf20
push dword [eax - 4]
call fcn.0046a990
add esp, 4
jmp 0x41bf20
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
push eax
call fcn.0046a990
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0046db80
mov ecx, esp
call fcn.0046db80
nop word cs:[eax + eax]
nop