Function at 0x1121460
Capabilities:
Get file size
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x2fc7c]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
call fcn.01055320
test eax, eax
je 0x11216bb
push esi
xor eax, eax
push eax
push 1
push eax
push 3
push 7
push 0xc0000000
push edi
push ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call fcn.01109500
mov esi, eax
test esi, esi
je 0x11216ad
cmp esi, 0xffffffff
je 0x11216ad
lea ecx, [ebp - 0x30]
push ecx
push esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 1
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp dword [ebp - 0x2c], 0
jg 0x11214e6
mov edi, dword [ebp - 0x30]
jl 0x11214eb
cmp edi, 0x40000000
jb 0x11214eb
mov edi, 0x40000000
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x112168f
cmp eax, 0xffffffff
je 0x112168f
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
push edi
push 0
push 0
push 0xf001f
push ecx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x112155d
cmp edi, 0x100000
jb 0x1121537
shr edi, 1
jmp 0x1121537
mov dword [ebp - 0x10], edi
movzx edx, byte [esi + edi - 1]
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 8]
push 0
mov byte [ebp - 1], dl
mov edx, dword [ebp + 0x14]
push edx
xor edx, edx
add ecx, dword [ebp - 0x20]
push eax
adc edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push edx
push ecx
lea ecx, [esi + eax]
push ecx
mov byte [esi + edi - 1], 0
call fcn.0103ca00
movzx edx, byte [ebp - 1]
mov ecx, eax
mov byte [esi + edi - 1], dl
test ecx, ecx
je 0x1121632
cmp dword [ebp - 0x24], 0
jl 0x1121632
jg 0x11215ba
test ebx, ebx
jbe 0x1121632
mov eax, ecx
sub eax, esi
xor edx, edx
sub ebx, eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x24]
sbb ebx, edx
mov dword [ebp - 0x34], ebx
js 0x1121622
jg 0x11215d7
cmp dword [ebp - 0x38], 2
jbe 0x1121622
mov ebx, dword [ebp - 0x54]
xor edx, edx
div ebx
imul eax, ebx
mov ebx, dword [ebp - 0x28]
sub ecx, eax
sub ecx, esi
mov dword [ebp - 8], ecx
xor ecx, ecx
add dword [ebp - 0x20], eax
adc dword [ebp - 0x1c], ecx
sub ebx, eax
mov eax, dword [ebp - 0x24]
sbb eax, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
cmp ebx, edi
jne 0x112160c
cmp eax, ecx
jne 0x112160c
xor edi, edi
jmp 0x1121632
xor ecx, ecx
cmp eax, ecx
jg 0x112161d
jl 0x1121619
cmp ebx, dword [ebp - 0x10]
jae 0x112161d
mov edi, ebx
jmp 0x1121632
mov edi, dword [ebp - 0x10]
jmp 0x1121632
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
cmp dword [ebp - 0x24], 0
jl 0x1121680
jg 0x1121645
test ebx, ebx
jbe 0x1121680
test edi, edi
jbe 0x1121680
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x1121680
jg 0x1121658
cmp dword [ebp - 0x20], 0
jbe 0x1121680
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
push edi
push ecx
push eax
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x1121560
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x4c]
push eax
push ebx
call fcn.010ee760
mov ecx, dword [ebp + 0x14]
push esi
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx + 0x2fc7c]
push edi
push edx
call fcn.0111a030
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10