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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x208
push 0
lea eax, [edi + 8]
mov dword [edi], vtable.CTextEdit.0
push eax
call fcn.102134e7
push 0xc
mov dword [edi + 0x210], 0
mov dword [edi + 0x214], 0
call fcn.10213511
push 0x410
push 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x210], eax
lea eax, [ebp - 0x414]
push eax
mov dword [edi + 0x218], 0
mov dword [edi + 0x21c], 0
call fcn.102134e7
add esp, 0x1c
mov dword [edi + 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
cmp ebx, 0xffffffff
je 0x10126eff
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x41c], esi
cmp esi, 0xffffffff
je 0x10126eff
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x10126d13
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10126eff
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x10126d42
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x10126eff
mov ecx, 0xfeff
cmp word [eax], cx
jne 0x10126d95
push esi
mov dword [edi + 4], 2
call fcn.102135a7
add esp, 4
mov dword [ebp - 0x418], eax
push 0
push 0
push esi
push eax
mov eax, dword [ebp - 0x420]
shr esi, 1
add eax, 2
dec esi
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
jmp 0x10126da2
mov dword [edi + 4], 1
mov dword [ebp - 0x418], eax
xor ecx, ecx
xor ebx, ebx
test esi, esi
je 0x10126e51
mov edi, edi
mov al, byte [ebx + eax]
cmp al, 0xd
je 0x10126dd1
cmp ecx, 0x207
je 0x10126dd1
cmp al, 0xa
je 0x10126e42
movzx eax, al
mov word [ebp + ecx*2 - 0x414], ax
inc ecx
jmp 0x10126e42
add ecx, ecx
cmp ecx, 0x410
jae 0x10126f14
xor eax, eax
mov word [ebp + ecx - 0x414], ax
lea eax, [ebp - 0x414]
push eax
call fcn.102136b5
mov esi, dword [edi + 0x210]
add esp, 4
cmp dword [edi + 0x214], 0x15555555
mov dword [ebp - 0x428], eax
je 0x10126f19
push 0xc
call fcn.10213511
mov ecx, dword [ebp - 0x428]
add esp, 4
mov dword [eax + 8], ecx
mov ecx, dword [esi + 4]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov esi, dword [ebp - 0x41c]
mov dword [ecx], eax
inc dword [edi + 0x214]
xor ecx, ecx
mov eax, dword [ebp - 0x418]
inc ebx
cmp ebx, esi
jb 0x10126db0
cmp word [ebp - 0x414], 0
je 0x10126eba
add ecx, ecx
cmp ecx, 0x410
jae 0x10126f14
xor eax, eax
mov word [ebp + ecx - 0x414], ax
lea eax, [ebp - 0x414]
push eax
call fcn.102136b5
mov esi, dword [edi + 0x210]
add esp, 4
cmp dword [edi + 0x214], 0x15555555
mov ebx, eax
je 0x10126f19
push 0xc
call fcn.10213511
add esp, 4
mov dword [eax + 8], ebx
mov ecx, dword [esi + 4]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov dword [ecx], eax
inc dword [edi + 0x214]
cmp dword [edi + 4], 2
jne 0x10126ecf
mov eax, dword [ebp - 0x418]
push eax
call fcn.10213559
add esp, 4
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x42c]
call esi
mov ecx, dword [edi + 0x210]
mov ecx, dword [ecx]
mov dword [edi + 0x218], ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 4
call fcn.101e2490
push str.list_T__too_long
call fcn.101d9a10
int3