Function at 0x1010905
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x101e130
call fcn.0101caf8
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax - 8], edi
mov dword [ebp - 4], edi
jne 0x1010933
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::operator
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1010bf2
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
push edi
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax + 1]
push edi
mov dword [ebp - 0x1c], eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ebx, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10109a6
mov byte [ebx], al
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10109b7
xor eax, eax
jmp 0x10109d9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and eax, 0xfffffffc
call fcn.0101cb40
mov eax, esp
push edi
push ebx
push eax
call fcn.0101047b
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_1
push ebx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
pop ecx
jne 0x1010be4
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp dword [eax - 8], edi
je 0x1010be4
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0xc8]
call sub.MFC42u.DLL_CString::operator
push 0xffffffffffffffff
lea ebx, [esi + 0x9c]
push edi
mov ecx, ebx
call sub.MFC42u.DLL_CStringArray::SetSize
push 0xa
push 0xa
mov ecx, ebx
call sub.MFC42u.DLL_CStringArray::SetSize
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
je 0x1010aca
mov edi, 0x1003364
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::SpanExcluding
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
je 0x1010a8d
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov ecx, ebx
call sub.MFC42u.DLL_CStringArray::SetAtGrow
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push dword [eax - 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::TrimLeft_1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x1010a4d
or eax, 0xffffffff
mov dword [esi + 0xbc], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb0], eax
mov eax, dword [esi + 0xa4]
xor edi, edi
dec eax
js 0x1010bb9
mov eax, dword [esi + 0xa0]
lea eax, [eax + edi*4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0101c24c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::MakeLower
push 0x1001b3c
push 0x1002c14
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Replace
push 0x1003758
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_2
or ebx, 0xffffffff
cmp eax, ebx
je 0x1010b40
mov dword [esi + 0xb0], edi
jmp 0x1010b57
push 0x1003744
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, ebx
je 0x1010b57
mov dword [esi + 0xb4], edi
cmp dword [esi + 0xb8], ebx
je 0x1010b81
cmp dword [esi + 0xbc], ebx
jne 0x1010b81
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x1010b76
cmp word [eax], 0x5b
jne 0x1010b81
lea eax, [edi - 1]
mov dword [esi + 0xbc], eax
jmp 0x1010b9b
push 0x100371c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_2
cmp eax, ebx
je 0x1010b9b
lea eax, [edi + 1]
mov dword [esi + 0xb8], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi + 0xa4]
inc edi
dec eax
cmp edi, eax
jle 0x1010af4
jmp 0x1010bbc
or ebx, 0xffffffff
cmp dword [esi + 0xb8], ebx
je 0x1010bd3
cmp dword [esi + 0xbc], ebx
jne 0x1010bd3
dec edi
mov dword [esi + 0xbc], edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
xor edi, edi
inc edi
jmp 0x1010be6
xor edi, edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov eax, edi
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4