Function at 0x100c7f70
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 0x100c817a
call fcn.100c90e0
mov esi, dword [0x102f0d78]
test esi, esi
je 0x100c7fbb
mov ecx, dword [edi]
cmp dword [esi + 0x10], ecx
jne 0x100c7fb4
mov ax, word [esi + 0x14]
cmp ax, word [edi + 4]
jne 0x100c7fb4
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x20]
jne 0x100c7fb4
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x24]
je 0x100c8019
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x100c7f95
xor ecx, ecx
mov edx, 0x102f0db8
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, 0x102f0d70
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov edx, eax
test edx, edx
jne 0x100c8074
push str.FONTCONFIG_USE_MMAP
call fcn.10207822
add esp, 4
test eax, eax
je 0x100c8066
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.100cb050
add esp, 8
test eax, eax
je 0x100c8066
mov edx, dword [esp + 0x1c]
neg edx
sbb edx, edx
add edx, 2
jmp 0x100c806b
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
xor ecx, ecx
mov edx, 0x102f0db8
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 0x100c7fd1
push dword [esp + 0x20]
push esi
push dword [esp + 0x1c]
call fcn.100c73e0
add esp, 0xc
test eax, eax
jne 0x100c8168
push esi
call sym.project.dll_FcDirCacheUnload
add esp, 4
jmp 0x100c7fcf
mov edx, 3
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov ebp, dword [esp + 0x18]
cmp edx, 3
jne 0x100c8088
push ebp
call sym.project.dll_FcDirCacheCreateUUID
add esp, 4
jmp 0x100c8090
xor eax, eax
cmp edx, 1
sete al
test eax, eax
je 0x100c80d8
cmp dword [edi + 0x14], 0x400
jl 0x100c80d8
push 0
push 0
push 0
push 2
push 0
push ebp
call fcn.10208912
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x100c80dc
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 0x100c8118
push dword [edi + 0x14]
call fcn.1020782d
mov esi, eax
add esp, 4
test esi, esi
je 0x100c817a
push dword [edi + 0x14]
push esi
push ebp
call fcn.1020f108
add esp, 0xc
cmp eax, dword [edi + 0x14]
je 0x100c8113
push esi
call fcn.102067ed
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebx, 1
cmp dword [esi], 0xfc02fc04
jne 0x100c816f
cmp dword [esi + 4], 8
jl 0x100c816f
mov eax, dword [esi + 8]
cmp eax, dword [edi + 0x14]
jne 0x100c816f
push esi
call fcn.100c71b0
add esp, 4
test eax, eax
je 0x100c816f
push dword [esp + 0x20]
push esi
push dword [esp + 0x1c]
call fcn.100c73e0
add esp, 0xc
test eax, eax
je 0x100c816f
push edi
push esi
call fcn.100c6ed0
add esp, 8
test eax, eax
je 0x100c816f
test ebx, ebx
je 0x100c8168
mov dword [esi], 0xfc02fc05
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push esi
test ebx, ebx
jne 0x100c8104
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret