Function at 0x48c380
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.0046aaf0
add esp, 0xc
call fcn.0048aea0
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 8], 0
cmp word [edi], 0
jne 0x48c3c7
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.004b9282
push esi
mov ebx, eax
call fcn.004b9282
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 0x48c656
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.0046aaf0
add esp, 0x10
call fcn.0048aea0
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 0x48c5b4
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 0x48c5aa
cmp dword [ebp - 8], 4
jb 0x48c5fb
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 0x48c5f8
cmp dword [ebp - 8], 0x10
jb 0x48c5a0
lea ecx, [edi + 0xc]
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 8]
ja 0x48c5f8
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 0x48c5f5
test esi, esi
je 0x48c5f5
cmp dword [ebp - 0x14], ecx
jae 0x48c4eb
mov edx, dword [ebp - 4]
push edx
call fcn.004b9165
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x14], eax
call fcn.004b9282
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 0x48c5f5
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
add eax, ecx
push eax
push edx
call fcn.004b8ca0
lea edi, [esi + 2]
add esp, 0xc
cmp dword [ebp - 0x18], edi
jae 0x48c52c
push ebx
call fcn.004b9165
push edi
mov dword [ebp - 0x18], edi
call fcn.004b9282
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edi, [esi + eax]
cmp edi, dword [ebp - 8]
ja 0x48c5f5
mov edx, dword [ebp - 0xc]
mov ecx, eax
push esi
add ecx, edx
push ecx
push ebx
call fcn.004b8ca0
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.0046aaf0
add esp, 0xc
call fcn.0048aea0
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.0048b730
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [edi + 0xc]
cmp edx, dword [ebp - 8]
jbe 0x48c497
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.0046aaf0
add esp, 0xc
call fcn.0048aea0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004b9165
mov eax, dword [ebp - 4]
push eax
call fcn.004b9165
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.0046aaf0
add esp, 0xc
call fcn.0048aea0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004b9165
mov edx, dword [ebp - 4]
push edx
call fcn.004b9165
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 0x48c67a
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edi
push str.PATHTREE_LoadTreeFromDisk:_file__s_doesnt_exist.
push ecx
call fcn.0046aaf0
add esp, 0xc
jmp 0x48c692
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.0046aaf0
add esp, 0x10
call fcn.0048aea0
add esp, 4
push ebx
call fcn.004b9165
mov eax, dword [ebp - 4]
push eax
call fcn.004b9165
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8