Function at 0x4209a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
sub esp, 0x27c
mov dword [esp], str.ANDROID_SDK_HOME
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x25c], 0x51af3c
call fcn.00428cc0
test eax, eax
mov edx, eax
je 0x420ad7
test byte [0x551031], 4
jne 0x420c4c
mov dword [esp + 0x10], str..android
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x5236bd
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call fcn.0041f8d0
cmp eax, 0x103
jg 0x420acd
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004272f0
test eax, eax
jne 0x420a70
mov dword [esp + 4], esi
mov dword [esp + 0x10], str.adbkey
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5236bd
mov dword [esp], edi
call fcn.0041f8d0
mov esi, eax
mov edx, dword [ebp - 0x25c]
lea ebx, [edx - 0xc]
cmp ebx, 0x51af30
jne 0x420c26
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x25d]
lea ecx, [ebp - 0x254]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004e0d80
lea eax, [ebp - 0x254]
sub esp, 8
mov dword [esp + 4], 0x1e8
mov dword [esp], eax
call fcn.004275a0
mov edx, eax
mov eax, dword [ebp - 0x254]
lea ecx, [eax - 0xc]
cmp ecx, 0x51af30
jne 0x420d38
test edx, edx
jns 0x420a28
test byte [0x551031], 4
jne 0x420d7a
mov esi, 0xffffffff
jmp 0x420a4a
mov dword [esp + 0x10], ebx
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_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
js 0x420b28
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042d8f0
test al, al
je 0x420acd
mov edx, dword [ebp - 0x25c]
jmp 0x4209d6
test byte [0x551031], 4
je 0x420acd
mov dword [ebp - 0x26c], eax
call fcn.0042bec0
mov edx, dword [ebp - 0x26c]
cmp eax, 2
jg 0x420acd
mov esi, dword [sym.imp.msvcrt.dll__errno]
lea edi, [ebp - 0x250]
mov dword [ebp - 0x270], edx
lea ebx, [ebp - 0x258]
call esi
mov edx, dword [ebp - 0x270]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0042d220
mov eax, dword [ebp - 0x254]
mov dword [esp], edi
mov dword [esp + 4], str.SHGetFolderPathW_failed:__s
mov dword [esp + 8], eax
call fcn.0042cf00
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x137
mov dword [esp], str.system_core_adb_adb_auth_host.cpp
call fcn.0042bf90
mov ecx, ebx
sub esp, 0x14
call fcn.0042c110
mov ecx, dword [ebp - 0x250]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050a5a0
mov ecx, ebx
call fcn.0042c1a0
mov ecx, dword [ebp - 0x250]
mov dword [esp], ebx
sub ecx, 0xc
call fcn.004df670
mov ecx, dword [ebp - 0x254]
sub ecx, 0xc
push eax
mov dword [esp], edi
call fcn.004df670
push eax
call esi
mov edi, dword [ebp - 0x26c]
mov dword [eax], edi
jmp 0x420acd
lea eax, [edx - 4]
call fcn.00512fe0
test eax, eax
jg 0x420a5f
lea eax, [ebp - 0x254]
mov ecx, ebx
mov dword [esp], eax
call fcn.004df650
push eax
jmp 0x420a5f
mov dword [ebp - 0x26c], edx
call fcn.0042bec0
mov edx, dword [ebp - 0x26c]
cmp eax, 2
jg 0x4209e3
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x270], eax
call eax
mov edx, dword [ebp - 0x274]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], str.home__s
mov dword [esp], ebx
mov dword [ebp - 0x26c], ecx
call fcn.0042cf00
lea edx, [ebp - 0x250]
mov ecx, edx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], str.system_core_adb_adb_auth_host.cpp
call fcn.0042bf90
lea edx, [ebp - 0x250]
mov ecx, edx
sub esp, 0x14
call fcn.0042c110
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050a5a0
lea edx, [ebp - 0x250]
mov ecx, edx
call fcn.0042c1a0
mov edx, dword [ebp - 0x220]
lea ecx, [edx - 0xc]
lea edx, [ebp - 0x250]
mov dword [esp], edx
call fcn.004df670
push eax
mov eax, dword [ebp - 0x270]
call eax
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x274]
mov dword [eax], ecx
jmp 0x4209e3
sub eax, 4
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x26c], edx
call fcn.00512fe0
mov edx, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x270]
test eax, eax
jg 0x420ab8
lea eax, [ebp - 0x258]
mov dword [esp], eax
call fcn.004df650
mov edx, dword [ebp - 0x26c]
push ecx
jmp 0x420ab8
call fcn.0042bec0
cmp eax, 2
jg 0x420acd
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov edi, dword [eax]
lea eax, [ebp - 0x254]
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x258]
mov dword [esp], eax
mov dword [esp + 4], str.Cannot_mkdir__s
call fcn.0042cf00
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14f
mov dword [esp], str.system_core_adb_adb_auth_host.cpp
call fcn.0042bf90
mov ecx, ebx
sub esp, 0x14
call fcn.0042c110
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050a5a0
mov ecx, ebx
call fcn.0042c1a0
mov eax, dword [ebp - 0x254]
mov dword [esp], ebx
lea ecx, [eax - 0xc]
call fcn.004df670
push edx
call esi
mov dword [eax], edi
jmp 0x420acd