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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
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 - 0xc], eax
push 0xffffffffffffffff
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 4]
mov edi, eax
mov esi, 0x1b30e4
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push ebp
push 0x1b059
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x1b048
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.00014538
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x1b02b
lea eax, [ebp - 0xac]
xor ecx, ecx
mov edx, 0x24
call fcn.00012b94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x1b02b
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x18], eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x1b02b
lea eax, [ebp - 0x88]
call fcn.0001a9b8
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x1b016
push dword fs:[eax]
mov dword fs:[eax], esp
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 - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1aff9
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp edx, dword [ebp - 0x2c]
jne 0x1af2b
cmp eax, dword [ebp - 0x30]
jae 0x1af38
jmp 0x1af2d
jge 0x1af38
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x14]
jne 0x1af50
cmp eax, dword [ebp - 0x18]
jbe 0x1af64
jmp 0x1af52
jle 0x1af64
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x1afc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0x30]
push ebx
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1afa7
lea eax, [ebp - 0x88]
mov ecx, ebx
mov edx, dword [ebp - 8]
call fcn.0001a9f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1afcb
cmp dword [ebp - 8], 0
je 0x1afc3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1b01d
cmp dword [ebp - 0x10], 0
je 0x1b015
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1b04f
cmp dword [ebp - 0x20], 0xffffffff
je 0x1b047
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret