Function at 0x1a09c
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
xor eax, eax
push ebp
push 0x1a2b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
call fcn.00019c98
mov edx, dword [ebp - 4]
mov eax, 0x1a2e8
call fcn.0001a3b8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.00014620
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1a2ad
xor eax, eax
push ebp
push 0x1a2a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x24
call fcn.00012c70
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jbe 0x1a28f
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x1a28f
lea eax, [ebp - 0xa4]
call fcn.00019c98
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1a281
xor eax, eax
push ebp
push 0x1a27a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, ebx
xor edx, edx
cmp edx, dword [ebp - 0x24]
jne 0x1a1cb
cmp eax, dword [ebp - 0x28]
jae 0x1a1d7
jmp 0x1a1cd
jge 0x1a1d7
mov eax, ebx
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
jne 0x1a1ef
cmp eax, dword [ebp - 0x20]
jbe 0x1a203
jmp 0x1a1f1
jle 0x1a203
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov edi, dword [ebp - 0x28]
push edi
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x1a235
lea eax, [ebp - 0xa4]
mov ecx, edi
mov edx, esi
call fcn.00019cd0
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jne 0x1a25d
cmp eax, dword [ebp - 0x20]
jb 0x1a1af
jmp 0x1a263
jl 0x1a1af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1a281
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xa4]
call fcn.00019d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1a2ad
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1a2c1
cmp dword [ebp - 0x10], 0x7fffffff
je 0x1a2d9
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret