Function at 0x417030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6020fb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
call fcn.00416750
push dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
lea edx, [eax + 8]
call fcn.004167f0
add esp, 4
lea ecx, [ebp - 0x34]
push 0
call fcn.00514a00
mov ebx, 1
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
lea ecx, [esi - 8]
mov dword [ebp - 0x18], ecx
cmp ecx, 0x7a1354
je 0x41709f
mov eax, ebx
lock xadd dword [ecx], eax
lea ecx, [ebp - 0x34]
call fcn.00403a20
push dword [ebp - 0x34]
call fcn.004c2bdc
add esp, 4
mov dword [ebp - 4], 0
cmp byte [esi], 0
mov eax, dword [ebp + 0x10]
je 0x417103
mov eax, dword [eax]
push ecx
mov esi, esp
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x4170dc
mov eax, ebx
lock xadd dword [ecx], eax
mov edx, 0x7acc00
mov ecx, esi
call fcn.005268e0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00526850
mov byte [ebp - 4], 1
mov ebx, 0x61
mov edx, dword [eax]
mov esi, dword [ebp + 0x10]
jmp 0x417127
mov edx, dword [eax]
mov esi, edx
mov dword [ebp + 0x10], esi
lea ecx, [edx - 8]
cmp ecx, 0x7a1354
je 0x41711b
mov eax, ebx
lock xadd dword [ecx], eax
mov dword [ebp - 4], 2
mov ebx, 0x62
lea ecx, [edi + 4]
mov dword [ebp - 0x14], ebx
push ecx
mov eax, esp
mov dword [eax], edx
lea eax, [ebp - 0x10]
push eax
call fcn.00527e80
mov dword [ebp - 4], 3
or edi, 0xffffffff
test bl, 2
je 0x41716e
and ebx, 0xfffffffd
add esi, 0xfffffff8
mov dword [ebp - 0x14], ebx
cmp esi, 0x7a1354
je 0x41716e
mov eax, edi
lock xadd dword [esi], eax
test eax, eax
jne 0x41716e
push esi
call fcn.004a8172
add esp, 4
mov byte [ebp - 4], 5
test bl, 1
je 0x41719e
mov ecx, dword [ebp - 0x20]
and ebx, 0xfffffffe
add ecx, 0xfffffff8
mov dword [ebp - 0x14], ebx
cmp ecx, 0x7a1354
je 0x41719e
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x41719e
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
je 0x4171ca
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x10]
call fcn.00418480
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 5
cmp eax, 0xffffffff
je 0x4171ca
mov al, 1
jmp 0x4171cc
xor al, al
test al, al
jne 0x41720e
mov eax, dword [ebp + 0xc]
push str.vnd.android.document_directory
push dword [eax]
call fcn.0041f150
add esp, 8
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x4171f7
lea eax, [ebp - 0x28]
push eax
call fcn.00527c40
or ebx, 4
jmp 0x417203
lea eax, [ebp - 0x24]
push eax
call fcn.00523980
or ebx, 8
mov eax, dword [eax]
mov byte [ebp + 0x13], 1
cmp byte [eax], 0
je 0x417212
mov byte [ebp + 0x13], 0
test bl, 8
je 0x41723b
mov ecx, dword [ebp - 0x24]
and ebx, 0xfffffff7
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x41723b
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x41723b
push ecx
call fcn.004a8172
add esp, 4
mov dword [ebp - 4], 5
test bl, 4
je 0x417268
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x417268
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x417268
push ecx
call fcn.004a8172
add esp, 4
cmp byte [ebp + 0x13], 0
je 0x4172a2
push 0xc
call fcn.004a7e6f
mov dword [ebp + 0x10], eax
add esp, 4
mov dword [eax], vtable.juce::AndroidDocument::Utils::AndroidDocumentPimplFile.0
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
lea edx, [ecx - 8]
cmp edx, 0x7a1354
je 0x41729b
mov ecx, 1
lock xadd dword [edx], ecx
mov esi, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4172ab
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4172cc
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4172cc
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x7a1354
je 0x4172e8
lock xadd dword [ecx], edi
test edi, edi
jne 0x4172e8
push ecx
call fcn.004a8172
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc