Function at 0x40ee00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x1b48
call fcn.004b12b0
sub esp, eax
mov eax, dword [esp + eax]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._s.pub
mov dword [esp + 4], 0x104
mov dword [ebp - 0x1b38], eax
lea eax, [ebp - 0x1b28]
mov dword [esp], eax
call fcn.0040e5d0
cmp eax, 0x103
jle 0x40ee50
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041daa0
mov edi, eax
call fcn.0041e2a0
mov dword [ebp - 0x1b2c], eax
call fcn.0041e2a0
mov dword [ebp - 0x1b34], eax
call fcn.0041e2a0
mov dword [ebp - 0x1b3c], eax
call fcn.0041e2a0
mov ebx, eax
call fcn.0041e2a0
mov dword [ebp - 0x1b30], eax
call fcn.0041e2a0
mov dword [ebp - 0x1b40], eax
mov eax, dword [ebp - 0x1b38]
mov dword [esp], eax
call fcn.0041ed20
cmp eax, 0x100
je 0x40ef98
mov eax, dword [ebp - 0x1b40]
mov dword [esp], eax
call fcn.0041e220
mov eax, dword [ebp - 0x1b30]
mov dword [esp], eax
call fcn.0041e220
mov dword [esp], ebx
call fcn.0041e220
mov eax, dword [ebp - 0x1b3c]
mov dword [esp], eax
call fcn.0041e220
mov eax, dword [ebp - 0x1b34]
mov dword [esp], eax
call fcn.0041e220
mov eax, dword [ebp - 0x1b2c]
mov dword [esp], eax
call fcn.0041e220
mov dword [esp], edi
call fcn.0041db50
test byte [0x504121], 4
je 0x40ee45
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov esi, dword [eax]
mov dword [esp], 0x504108
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
sub esp, 4
mov dword [esp + 0xc], str.write_public_keyfile
mov dword [esp + 8], str.system_core_adb_adb_auth_host.c
mov dword [esp + 4], 0x4c5318
mov dword [esp], eax
call fcn.0040e5a0
call ebx
mov dword [eax], esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Failed_to_convert_to_publickey_n
add eax, 0x40
mov dword [esp], eax
call fcn.0040e5a0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x504108
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call ebx
mov dword [eax], esi
jmp 0x40ee45
mov esi, dword [ebp - 0x1b2c]
mov dword [esp + 4], 0x20
mov dword [esp], esi
call fcn.0041e8f0
mov eax, dword [ebp - 0x1b38]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1b30]
mov dword [esp], eax
call fcn.0041e370
mov edx, dword [ebp - 0x1b3c]
mov dword [esp + 4], 0x800
mov dword [esp], edx
call fcn.0041e8f0
mov edx, dword [ebp - 0x1b3c]
mov eax, dword [ebp - 0x1b30]
mov dword [esp + 0xc], edi
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1b34]
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.0041f3c0
mov eax, dword [ebp - 0x1b30]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.0041f660
mov dword [esp + 8], esi
mov esi, dword [ebp - 0x1b40]
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0041ffc0
mov dword [esp], esi
lea esi, [ebp - 0x191c]
mov dword [ebp - 0x1a24], 0x40
call fcn.0041e600
neg eax
mov dword [ebp - 0x1a20], eax
mov ecx, dword [ebp - 0x1b34]
add esi, 4
mov eax, dword [ebp - 0x1b2c]
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.0041f660
mov dword [esp], ebx
call fcn.0041e600
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x1b2c]
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1b30]
mov dword [esp + 8], eax
mov dword [esp], eax
call fcn.0041f660
mov dword [esp], ebx
call fcn.0041e600
mov dword [esi - 0x104], eax
lea eax, [ebp - 0x181c]
cmp esi, eax
jne 0x40f061
mov eax, dword [ebp - 0x1b38]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.0041e600
mov dword [ebp - 0x181c], eax
mov eax, dword [ebp - 0x1b40]
mov dword [esp], eax
call fcn.0041e220
mov eax, dword [ebp - 0x1b30]
mov dword [esp], eax
call fcn.0041e220
mov dword [esp], ebx
call fcn.0041e220
mov eax, dword [ebp - 0x1b3c]
mov dword [esp], eax
call fcn.0041e220
mov eax, dword [ebp - 0x1b34]
mov dword [esp], eax
call fcn.0041e220
mov eax, dword [ebp - 0x1b2c]
mov dword [esp], eax
call fcn.0041e220
mov dword [esp], edi
call fcn.0041db50
lea eax, [ebp - 0x1b28]
mov dword [esp + 4], 0x4c53f2
mov dword [esp], eax
call fcn.004210c0
test eax, eax
mov ebx, eax
je 0x40f3d8
test byte [0x504121], 4
jne 0x40f347
call fcn.004222f0
mov dword [esp], eax
call fcn.004223d0
mov dword [esp + 4], 0x100
mov esi, eax
mov dword [esp], eax
call fcn.00422550
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00422d80
mov dword [esp + 8], 0x20c
mov edi, eax
lea eax, [ebp - 0x1a24]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004226e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov dword [esp], edi
call fcn.00422a90
mov dword [esp], esi
call fcn.00422dd0
mov dword [esp], esi
call fcn.00422450
mov dword [esp], str.HOSTNAME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40f328
mov dword [esp], str.HOSTNAME
lea esi, [ebp - 0x1818]
call sub.msvcrt.dll_getenv
mov dword [esp + 8], 0x400
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x1419], 0
mov dword [esp], str.LOGNAME
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40f309
mov dword [esp], str.LOGNAME
lea edi, [ebp - 0x1418]
call sub.msvcrt.dll_getenv
mov dword [esp + 8], 0x400
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
mov byte [ebp - 0x1019], 0
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x1018]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.__s__s
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call fcn.0040e5d0
cmp eax, 0xfff
jle 0x40f293
mov byte [ebp - 0x19], 0
mov eax, esi
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x40f295
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004226e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov dword [esp], ebx
call fcn.00422a90
mov dword [esp], ebx
call fcn.00422ee0
mov eax, 1
jmp 0x40ee47
mov dword [ebp - 0x1418], 0x6e6b6e75
lea edi, [ebp - 0x1418]
mov dword [ebp - 0x1414], 0x6e776f
jmp 0x40f262
mov dword [ebp - 0x1818], 0x6e6b6e75
lea esi, [ebp - 0x1818]
mov dword [ebp - 0x1814], 0x6e776f
jmp 0x40f221
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov esi, dword [eax]
mov dword [esp], 0x504108
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
sub esp, 4
mov dword [esp + 0xc], str.write_public_keyfile
mov dword [esp + 8], str.system_core_adb_adb_auth_host.c
mov dword [esp + 4], 0x4c5318
mov dword [esp], eax
call fcn.0040e5a0
call edi
mov dword [eax], esi
lea eax, [ebp - 0x1b28]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Writing_public_key_to__s_n
add eax, 0x40
mov dword [esp], eax
call fcn.0040e5a0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x504108
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call edi
mov dword [eax], esi
jmp 0x40f169
test byte [0x504121], 4
je 0x40ee45
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov esi, dword [eax]
mov dword [esp], 0x504108
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
sub esp, 4
mov dword [esp + 0xc], str.write_public_keyfile
mov dword [esp + 8], str.system_core_adb_adb_auth_host.c
mov dword [esp + 4], 0x4c5318
mov dword [esp], eax
call fcn.0040e5a0
call ebx
mov dword [eax], esi
lea eax, [ebp - 0x1b28]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Failed_to_open__s_n
add eax, 0x40
mov dword [esp], eax
call fcn.0040e5a0
jmp 0x40ef6f