Function at 0x111f6d0
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 + 0x2f874]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
call fcn.01054b50
test eax, eax
je 0x111f92b
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.01107ae0
mov esi, eax
test esi, esi
je 0x111f91d
cmp esi, 0xffffffff
je 0x111f91d
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 0x111f756
mov edi, dword [ebp - 0x30]
jl 0x111f75b
cmp edi, 0x40000000
jb 0x111f75b
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 0x111f8ff
cmp eax, 0xffffffff
je 0x111f8ff
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 0x111f7cd
cmp edi, 0x100000
jb 0x111f7a7
shr edi, 1
jmp 0x111f7a7
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.0103c240
movzx edx, byte [ebp - 1]
mov ecx, eax
mov byte [esi + edi - 1], dl
test ecx, ecx
je 0x111f8a2
cmp dword [ebp - 0x24], 0
jl 0x111f8a2
jg 0x111f82a
test ebx, ebx
jbe 0x111f8a2
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 0x111f892
jg 0x111f847
cmp dword [ebp - 0x38], 2
jbe 0x111f892
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 0x111f87c
cmp eax, ecx
jne 0x111f87c
xor edi, edi
jmp 0x111f8a2
xor ecx, ecx
cmp eax, ecx
jg 0x111f88d
jl 0x111f889
cmp ebx, dword [ebp - 0x10]
jae 0x111f88d
mov edi, ebx
jmp 0x111f8a2
mov edi, dword [ebp - 0x10]
jmp 0x111f8a2
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 0x111f8f0
jg 0x111f8b5
test ebx, ebx
jbe 0x111f8f0
test edi, edi
jbe 0x111f8f0
mov eax, dword [ebp - 0x1c]
test eax, eax
jl 0x111f8f0
jg 0x111f8c8
cmp dword [ebp - 0x20], 0
jbe 0x111f8f0
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 0x111f7d0
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.010ed180
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 + 0x2f874]
push edi
push edx
call fcn.01118340
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10