Function at 0x412980
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x26c
mov dword [esp], str.ANDROID_SDK_HOME
call sub.msvcrt.dll_getenv
test eax, eax
mov edi, eax
je 0x412b20
test byte [0x4ee061], 4
jne 0x412a50
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x220]
mov dword [esp + 0x10], str..android
mov dword [esp + 8], 0x4b1bc1
mov dword [esp + 4], 0x104
mov dword [esp], edi
call fcn.0049e4c0
cmp eax, 0x103
jg 0x412a3d
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
jne 0x412a23
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x10], str.adbkey
mov dword [esp + 8], 0x4b1bc1
call fcn.0049e4c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__mkdir]
test eax, eax
jns 0x4129fb
test byte [0x4ee061], 4
jne 0x412b57
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x264], ecx
call ecx
mov eax, dword [eax]
mov dword [esp], 0x4ee068
mov dword [ebp - 0x25c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x260], eax
call sub.msvcrt.dll__getpid
mov ecx, dword [ebp - 0x260]
mov dword [esp + 8], str.get_user_keyfilepath
mov dword [esp + 4], 0x4b1b4c
mov dword [esp + 0x10], ecx
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x40]
mov dword [esp], eax
call fcn.0049e490
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x260], ecx
call ecx
mov edx, dword [ebp - 0x25c]
mov dword [eax], edx
mov ecx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], str.home__s_n
lea eax, [ecx + 0x40]
mov dword [esp], eax
call fcn.0049e490
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ecx + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ee068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x260]
sub esp, 4
call ecx
mov edx, dword [ebp - 0x25c]
mov dword [eax], edx
jmp 0x4129b3
lea edi, [ebp - 0x11c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x28
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathA]
sub esp, 0x14
jmp 0x4129a6
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov esi, dword [eax]
mov dword [esp], 0x4ee068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x25c], eax
call sub.msvcrt.dll__getpid
mov edx, dword [ebp - 0x25c]
mov dword [esp + 8], str.get_user_keyfilepath
mov dword [esp + 4], 0x4b1b4c
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0049e490
call ebx
mov dword [eax], esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], str.Cannot_mkdir__s
add eax, 0x40
mov dword [esp], eax
call fcn.0049e490
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x4ee068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
call ebx
mov dword [eax], esi
jmp 0x412a3d