Function at 0x19e2c
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 - 0x1c], eax
push 0xffffffffffffffff
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
xor eax, eax
push ebp
push 0x1a044
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
call fcn.00019c98
mov edx, dword [ebp - 4]
mov eax, 0x1a078
call fcn.0001a3b8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.0001416c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x1a03a
xor eax, eax
push ebp
push 0x1a033
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
xor ecx, ecx
mov edx, 0x24
call fcn.00012c70
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, dword [ebp - 0x88]
test ebx, ebx
jbe 0x1a01c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x1a01c
lea eax, [ebp - 0x80]
call fcn.00019c98
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1a011
xor eax, eax
push ebp
push 0x1a00a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, ebx
xor edx, edx
cmp edx, dword [ebp - 0x24]
jne 0x19f5e
cmp eax, dword [ebp - 0x28]
jae 0x19f6a
jmp 0x19f60
jge 0x19f6a
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 - 0xc]
jne 0x19f82
cmp eax, dword [ebp - 0x10]
jbe 0x19f96
jmp 0x19f84
jle 0x19f96
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
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 - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x19fc5
lea eax, [ebp - 0x80]
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 - 0xc]
jne 0x19fed
cmp eax, dword [ebp - 0x10]
jb 0x19f42
jmp 0x19ff3
jl 0x19f42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1a011
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x80]
call fcn.00019d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1a03a
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1a04e
cmp dword [ebp - 0x1c], 0x7fffffff
je 0x1a066
mov eax, dword [ebp - 0x1c]
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