Function at 0x4190e8
Capabilities:
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 - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41935a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
call fcn.00418e1c
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call dword [0x454f40]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x419325
xor eax, eax
push ebp
push 0x41931e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x88]
add eax, eax
lea eax, [eax + eax*4]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4192e2
xor eax, eax
push ebp
push 0x4192db
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x454f44]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4191f4
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4191f4
mov dword [ebp - 0x1c], 0xffffffff
test bl, bl
je 0x4191f4
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x454f30
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x419344
cmp dword [ebp - 0x1c], 0
jne 0x419206
cmp dword [ebp - 0x20], 0
jbe 0x4192c4
jmp 0x41920c
jle 0x4192c4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x41922e
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x41923b
jmp 0x419232
pop edx
pop eax
jle 0x41923b
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
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 - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x419295
xor eax, eax
push ebp
push 0x41928e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00418e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419295
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
mov eax, dword [ebp - 0x18]
xor edx, edx
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
jne 0x4192b8
cmp eax, dword [ebp - 0x20]
jb 0x4192ba
jmp 0x4192c4
jge 0x4192c4
cmp dword [ebp - 0x14], 0
jne 0x41920c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419307
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
test bl, bl
je 0x419307
call sub.kernel32.dll_GetLastError
cmp eax, 0x3ee
je 0x419307
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x454f30
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x419344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419339
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
test bl, bl
je 0x419339
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x454f30
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x419344
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x80]
call fcn.00418ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419361
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret