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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 1
push ebx
xor eax, eax
push 3
push 7
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push 0xc0000000
push eax
push ecx
call fcn.011037f0
mov esi, eax
cmp esi, ebx
je 0x111f247
cmp esi, 0xffffffff
je 0x111f247
push edi
lea edx, [ebp - 0x2c]
push edx
push esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp dword [ebp - 0x28], ebx
jg 0x111f082
mov edi, dword [ebp - 0x2c]
jl 0x111f087
cmp edi, 0x40000000
jb 0x111f087
mov edi, 0x40000000
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
push ebx
push ebx
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x111f228
cmp eax, 0xffffffff
je 0x111f228
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
lea ecx, [ecx]
mov edx, dword [ebp - 8]
push edi
push 0
push 0
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x111f0f6
cmp edi, 0x100000
jb 0x111f0d0
shr edi, 1
jmp 0x111f0d0
mov dword [ebp - 0xc], edi
lea esp, [esp]
movzx eax, byte [esi + edi - 1]
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 4]
push 0
mov byte [ebp + 0xf], al
mov eax, dword [ebp + 0x14]
push eax
xor eax, eax
add edx, dword [ebp - 0x1c]
push ecx
adc eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
push eax
push edx
lea edx, [esi + ecx]
push edx
mov byte [esi + edi - 1], 0
call fcn.0103b110
mov ecx, eax
movzx eax, byte [ebp + 0xf]
mov byte [esi + edi - 1], al
test ecx, ecx
je 0x111f1ce
cmp dword [ebp - 0x20], 0
jl 0x111f1ce
jg 0x111f156
test ebx, ebx
jbe 0x111f1ce
mov eax, ecx
sub eax, esi
xor edx, edx
sub ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x20]
sbb ebx, edx
mov dword [ebp - 0x30], ebx
js 0x111f1be
jg 0x111f173
cmp dword [ebp - 0x34], 2
jbe 0x111f1be
mov ebx, dword [ebp - 0x50]
xor edx, edx
div ebx
imul eax, ebx
mov ebx, dword [ebp - 0x24]
sub ecx, eax
sub ecx, esi
mov dword [ebp - 4], ecx
xor ecx, ecx
add dword [ebp - 0x1c], eax
adc dword [ebp - 0x18], ecx
sub ebx, eax
mov eax, dword [ebp - 0x20]
sbb eax, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
cmp ebx, edi
jne 0x111f1a8
cmp eax, ecx
jne 0x111f1a8
xor edi, edi
jmp 0x111f1ce
xor ecx, ecx
cmp eax, ecx
jg 0x111f1b9
jl 0x111f1b5
cmp ebx, dword [ebp - 0xc]
jae 0x111f1b9
mov edi, ebx
jmp 0x111f1ce
mov edi, dword [ebp - 0xc]
jmp 0x111f1ce
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
cmp dword [ebp - 0x20], 0
jl 0x111f21c
jg 0x111f1e1
test ebx, ebx
jbe 0x111f21c
test edi, edi
jbe 0x111f21c
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x111f21c
jg 0x111f1f4
cmp dword [ebp - 0x1c], 0
jbe 0x111f21c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
push edi
push ecx
push eax
push 0xf001f
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
mov eax, dword [ebp - 4]
lea ecx, [esi + eax]
mov dword [ebp - 0x10], ecx
test esi, esi
jne 0x111f100
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.010e8fc0
mov edx, dword [ebp + 0x14]
push ebx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10