Function at 0x486ac0
Capabilities:
Check if file exists
Delete file
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push edi
push str.LoadTreeFromDisk__s_
push eax
call fcn.00466ad0
add esp, 0xc
call fcn.00485550
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 8], 0
cmp word [edi], 0
jne 0x486b07
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, 0x200
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004b2522
push esi
mov ebx, eax
call fcn.004b2522
add esp, 8
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x486d96
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ecx
mov edx, esp
mov dword [ebp - 0x20], esp
push eax
push edi
push str.PATHTREE_LoadTreeFromDisk__s_:_FileSize_ul
push edx
mov dword [ebp - 8], eax
call fcn.00466ad0
add esp, 0x10
call fcn.00485550
add esp, 4
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x486cf4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x486cea
cmp dword [ebp - 8], 4
jb 0x486d3b
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], ecx
mov ecx, edx
cmp dword [ecx + 0xc], 2
mov edi, 4
jne 0x486d38
cmp dword [ebp - 8], 0x10
jb 0x486ce0
lea ecx, [edi + 0xc]
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 8]
ja 0x486d38
mov edx, dword [edi + eax]
mov ecx, dword [edi + eax + 4]
mov esi, dword [edi + eax + 8]
mov dword [ebp - 0x28], ecx
cmp edx, 0x410509e8
jne 0x486d35
test esi, esi
je 0x486d35
cmp dword [ebp - 0x14], ecx
jae 0x486c2b
mov edx, dword [ebp - 4]
push edx
call fcn.004b2405
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x14], eax
call fcn.004b2522
mov ecx, dword [ebp - 0x28]
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
lea edx, [ecx + eax]
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 8]
ja 0x486d35
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
add eax, ecx
push eax
push edx
call fcn.004b1f40
lea edi, [esi + 2]
add esp, 0xc
cmp dword [ebp - 0x18], edi
jae 0x486c6c
push ebx
call fcn.004b2405
push edi
mov dword [ebp - 0x18], edi
call fcn.004b2522
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edi, [esi + eax]
cmp edi, dword [ebp - 8]
ja 0x486d35
mov edx, dword [ebp - 0xc]
mov ecx, eax
push esi
add ecx, edx
push ecx
push ebx
call fcn.004b1f40
add esp, 8
mov ecx, esp
mov dword [ebp - 0x1c], esp
push ebx
xor eax, eax
push str.LoadTreeFromDisk:_loading_node__s
shr esi, 1
push ecx
mov word [ebx + esi*2], ax
call fcn.00466ad0
add esp, 0xc
call fcn.00485550
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add esp, 4
push 0
push 0
push 0
push edx
push eax
push ebx
push ecx
mov eax, 1
call fcn.00485e70
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [edi + 0xc]
cmp edx, dword [ebp - 8]
jbe 0x486bd7
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push edi
push str.LoadTreeFromDisk__s_:_done
push edx
call fcn.00466ad0
add esp, 0xc
call fcn.00485550
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004b2405
mov eax, dword [ebp - 4]
push eax
call fcn.004b2405
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push str._PATHTREE_LoadTreeFromDisk:_ERROR__tree_is_malformed__LE_d
push ecx
call fcn.00466ad0
add esp, 0xc
call fcn.00485550
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004b2405
mov edx, dword [ebp - 4]
push edx
call fcn.004b2405
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x486dba
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edi
push str.PATHTREE_LoadTreeFromDisk:_file__s_doesnt_exist.
push ecx
call fcn.00466ad0
add esp, 0xc
jmp 0x486dd2
call esi
push ecx
mov edx, esp
mov dword [ebp + 8], esp
push eax
push edi
push str._PATHTREE_LoadTreeFromDisk:_FAILED_to_open_file__s__LE_d
push edx
call fcn.00466ad0
add esp, 0x10
call fcn.00485550
add esp, 4
push ebx
call fcn.004b2405
mov eax, dword [ebp - 4]
push eax
call fcn.004b2405
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8