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

Disassembly:
mov eax, 0x1083043
call fcn.01002b15
sub esp, 0x3c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
neg ecx
push 3
sbb ecx, ecx
pop esi
and ecx, 0x7ff8ffa9
add ecx, 0x80070057
push 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
pop ebx
jne 0x103d7ab
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, dword [ebp + 0x10]
push edi
push dword [eax]
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::erase_unsigned_int__unsigned_int_]
push ebx
push ebx
push esi
push ebx
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
push esi
mov dword [ebp - 4], ebx
call fcn.0101d06d
test al, al
je 0x103d7c5
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x10], ebx
mov edi, eax
jne 0x103d7e0
push edi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x103d7e0
push ebx
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x103d7fb
cmp dword [ebp - 0x14], edi
jne 0x103d813
push edi
push dword [ebp + 0xc]
push ebx
call fcn.0101b598
mov edx, eax
push 9
pop ecx
xor eax, eax
mov word [ebp - 0x48], bx
lea edi, [ebp - 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x48]
push eax
push edx
call dword [sym.imp.msvcrt.dll__ultow]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push eax
call fcn.010149dd
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
push dword [ebp + 0xc]
call sub.MFC42u.DLL_operatordelete
pop ecx
cmp esi, ebx
je 0x101d043
push esi
call fcn.0101d056
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
cmp ecx, ebx
setl al
cmp al, bl
je 0x101cf5f
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
jmp 0x101d046
lea ecx, [ebp - 0x20]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [edi], ecx
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
jmp 0x101d039
mov edi, dword [ebp + 8]
push 3
pop eax
mov ecx, 0x8007000e
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x101d039
lea ecx, [ebp - 0x20]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [edi], ecx
mov eax, dword [eax + 4]
jmp 0x101d02d
mov edi, dword [ebp + 8]
push 3
pop eax
mov ecx, 0x8000ffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x101d030