Function at 0x101150a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0
push 0
mov dword [ebx], vtable.CTextEdit.0
lea ecx, [ebx + 0x210]
mov dword [ebx + 0x210], 0
mov dword [ebx + 0x214], 0
call fcn.100080a0
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x218], 0
push SysReAllocString
mov dword [ebx + 0x21c], 0
push esi
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, 0xffffffff
je 0x10115301
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x10115301
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x1011516a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10115301
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x101151a0
push dword [ebp - 0x420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
jmp 0x10115301
mov eax, 0xfeff
cmp word [esi], ax
jne 0x101151e7
push edi
mov dword [ebx + 4], 2
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 0x418], eax
push 0
push 0
push edi
push eax
shr edi, 1
lea eax, [esi + 2]
dec edi
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov eax, dword [ebp - 0x418]
jmp 0x101151f6
mov dword [ebx + 4], 1
mov eax, esi
mov dword [ebp - 0x418], esi
xor ecx, ecx
xor esi, esi
test edi, edi
je 0x1011526d
mov edi, edi
mov al, byte [esi + eax]
cmp al, 0xd
je 0x10115221
cmp ecx, 0x207
je 0x10115221
cmp al, 0xa
je 0x10115262
movzx eax, al
mov word [ebp + ecx*2 - 0x414], ax
inc ecx
jmp 0x10115262
add ecx, ecx
cmp ecx, 0x410
jae 0x10115316
xor eax, eax
mov word [ebp + ecx - 0x414], ax
lea eax, [ebp - 0x414]
push eax
call sub.msvcrt.dll__wcsdup
add esp, 4
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
lea ecx, [ebx + 0x210]
push eax
call fcn.101157f0
xor ecx, ecx
mov eax, dword [ebp - 0x418]
inc esi
cmp esi, edi
jb 0x10115200
cmp word [ebp - 0x414], 0
je 0x101152ba
add ecx, ecx
cmp ecx, 0x410
jae 0x10115316
xor eax, eax
mov word [ebp + ecx - 0x414], ax
lea eax, [ebp - 0x414]
push eax
call sub.msvcrt.dll__wcsdup
add esp, 4
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
lea edi, [ebx + 0x210]
mov ecx, edi
push eax
call fcn.101157f0
jmp 0x101152c0
lea edi, [ebx + 0x210]
cmp dword [ebx + 4], 2
jne 0x101152d5
mov eax, dword [ebp - 0x418]
push eax
call sub.msvcrt.dll_free
add esp, 4
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
mov ecx, dword [edi]
mov ecx, dword [ecx]
mov dword [ebx + 0x218], ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
call fcn.101c8260
int3