Function at 0x100be880
Capabilities:
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [edi + 0x14], 0x28
jl 0x100bea8a
call fcn.100bf9f0
mov esi, dword [0x102e6cd8]
test esi, esi
je 0x100be8cb
mov ecx, dword [edi]
cmp dword [esi + 0x10], ecx
jne 0x100be8c4
mov ax, word [esi + 0x14]
cmp ax, word [edi + 4]
jne 0x100be8c4
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x20]
jne 0x100be8c4
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x24]
je 0x100be929
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x100be8a5
xor ecx, ecx
mov edx, 0x102e6d18
xor eax, eax
lock cmpxchg dword [edx], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
xor ecx, ecx
mov ebp, 0x102e6cd0
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov edx, eax
test edx, edx
jne 0x100be984
push str.FONTCONFIG_USE_MMAP
call fcn.101fe132
add esp, 4
test eax, eax
je 0x100be976
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.100c1960
add esp, 8
test eax, eax
je 0x100be976
mov edx, dword [esp + 0x1c]
neg edx
sbb edx, edx
add edx, 2
jmp 0x100be97b
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
xor ecx, ecx
mov edx, 0x102e6d18
xor eax, eax
lock cmpxchg dword [edx], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esi]
test esi, esi
je 0x100be8e1
push dword [esp + 0x20]
push esi
push dword [esp + 0x1c]
call fcn.100bdce0
add esp, 0xc
test eax, eax
jne 0x100bea78
push esi
call sym.project.dll_FcDirCacheUnload
add esp, 4
jmp 0x100be8df
mov edx, 3
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov ebp, dword [esp + 0x18]
cmp edx, 3
jne 0x100be998
push ebp
call sym.project.dll_FcDirCacheCreateUUID
add esp, 4
jmp 0x100be9a0
xor eax, eax
cmp edx, 1
sete al
test eax, eax
je 0x100be9e8
cmp dword [edi + 0x14], 0x400
jl 0x100be9e8
push 0
push 0
push 0
push 2
push 0
push ebp
call fcn.101ff222
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x100be9ec
push dword [edi + 0x14]
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test esi, esi
jne 0x100bea28
push dword [edi + 0x14]
call fcn.101fe13d
mov esi, eax
add esp, 4
test esi, esi
je 0x100bea8a
push dword [edi + 0x14]
push esi
push ebp
call fcn.102059c8
add esp, 0xc
cmp eax, dword [edi + 0x14]
je 0x100bea23
push esi
call fcn.101fd0fd
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebx, 1
cmp dword [esi], 0xfc02fc04
jne 0x100bea7f
cmp dword [esi + 4], 8
jl 0x100bea7f
mov eax, dword [esi + 8]
cmp eax, dword [edi + 0x14]
jne 0x100bea7f
push esi
call fcn.100bdab0
add esp, 4
test eax, eax
je 0x100bea7f
push dword [esp + 0x20]
push esi
push dword [esp + 0x1c]
call fcn.100bdce0
add esp, 0xc
test eax, eax
je 0x100bea7f
push edi
push esi
call fcn.100bd7d0
add esp, 8
test eax, eax
je 0x100bea7f
test ebx, ebx
je 0x100bea78
mov dword [esi], 0xfc02fc05
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push esi
test ebx, ebx
jne 0x100bea14
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret