Function at 0x1013afc0
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 0x1013b1ca
call fcn.1013c130
mov esi, dword [0x10331a98]
test esi, esi
je 0x1013b00b
mov ecx, dword [edi]
cmp dword [esi + 0x10], ecx
jne 0x1013b004
mov ax, word [esi + 0x14]
cmp ax, word [edi + 4]
jne 0x1013b004
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x20]
jne 0x1013b004
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x24]
je 0x1013b069
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x1013afe5
xor ecx, ecx
mov edx, 0x10331ad8
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, 0x10331a90
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov edx, eax
test edx, edx
jne 0x1013b0c4
push str.FONTCONFIG_USE_MMAP
call fcn.10274e5d
add esp, 4
test eax, eax
je 0x1013b0b6
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.1013e0a0
add esp, 8
test eax, eax
je 0x1013b0b6
mov edx, dword [esp + 0x1c]
neg edx
sbb edx, edx
add edx, 2
jmp 0x1013b0bb
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
xor ecx, ecx
mov edx, 0x10331ad8
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 0x1013b021
push dword [esp + 0x20]
push esi
push dword [esp + 0x1c]
call fcn.1013a420
add esp, 0xc
test eax, eax
jne 0x1013b1b8
push esi
call sym.Easy.MessageHub.dll_FcDirCacheUnload
add esp, 4
jmp 0x1013b01f
mov edx, 3
mov ecx, edx
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov ebp, dword [esp + 0x18]
cmp edx, 3
jne 0x1013b0d8
push ebp
call sym.Easy.MessageHub.dll_FcDirCacheCreateUUID
add esp, 4
jmp 0x1013b0e0
xor eax, eax
cmp edx, 1
sete al
test eax, eax
je 0x1013b128
cmp dword [edi + 0x14], 0x400
jl 0x1013b128
push 0
push 0
push 0
push 2
push 0
push ebp
call fcn.102716d5
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x1013b12c
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 0x1013b168
push dword [edi + 0x14]
call fcn.1026cf9e
mov esi, eax
add esp, 4
test esi, esi
je 0x1013b1ca
push dword [edi + 0x14]
push esi
push ebp
call fcn.1028090a
add esp, 0xc
cmp eax, dword [edi + 0x14]
je 0x1013b163
push esi
call fcn.1026cbe4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebx, 1
cmp dword [esi], 0xfc02fc04
jne 0x1013b1bf
cmp dword [esi + 4], 8
jl 0x1013b1bf
mov eax, dword [esi + 8]
cmp eax, dword [edi + 0x14]
jne 0x1013b1bf
push esi
call fcn.1013a1f0
add esp, 4
test eax, eax
je 0x1013b1bf
push dword [esp + 0x20]
push esi
push dword [esp + 0x1c]
call fcn.1013a420
add esp, 0xc
test eax, eax
je 0x1013b1bf
push edi
push esi
call fcn.10139f10
add esp, 8
test eax, eax
je 0x1013b1bf
test ebx, ebx
je 0x1013b1b8
mov dword [esi], 0xfc02fc05
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push esi
test ebx, ebx
jne 0x1013b154
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret