Function at 0x1013a9f5
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
inc ebx
mov ecx, dword [edi + 0x1c]
call fcn.10135c26
mov esi, eax
test esi, esi
je 0x1013abe8
and dword [esp + 0x14], 0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x1013aa24
sub ecx, edx
sar ecx, 1
inc ecx
lea ecx, [esi + ecx*2]
call fcn.10135c26
test eax, eax
je 0x1013ab15
mov ecx, dword [edi + 0x1c]
xor eax, eax
mov dword [esp + 0x20], eax
mov esi, eax
mov dword [esp + 0x24], eax
call fcn.10135c26
mov dword [esp + 0x10], eax
test eax, eax
je 0x1013ab0d
xor ecx, ecx
push ecx
push 0x100080
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1013aade
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1013aad1
test esi, esi
je 0x1013aabb
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x1013aad5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x1013aad5
xor eax, eax
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013aae2
xor eax, eax
mov ebx, eax
mov edx, dword [esp + 0x10]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x14]
jne 0x1013aaeb
sub ecx, edi
sar ecx, 1
inc ecx
lea ecx, [edx + ecx*2]
test ebx, ebx
jne 0x1013aa55
jmp 0x1013abe8
test esi, esi
je 0x1013abe8
xor edi, edi
push edi
push 0x100080
push 3
push edi
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x1013abe6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x1013abdf
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1013abdf
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [esp + 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1013abdd
cmp esi, 2
jb 0x1013aba5
cmp byte [edi], 0xff
jne 0x1013aba5
cmp byte [edi + 1], 0xfe
jne 0x1013aba5
shr esi, 1
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 2]
lea edx, [esi - 1]
call fcn.1013a666
jmp 0x1013abb3
lea eax, [esp + 0x14]
mov edx, esi
push eax
mov ecx, edi
call fcn.1013a84a
mov ecx, dword [ebp + 8]
xor ebx, ebx
test eax, eax
setne bl
test ecx, ecx
je 0x1013abc5
mov dword [ecx], eax
jmp 0x1013abd0
test eax, eax
je 0x1013abd0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.10134c85
jmp 0x1013abe8
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8