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

Disassembly:
mov eax, 0x110651a
call fcn.01003440
sub esp, 0x6c
mov eax, dword [0x1116788]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
push esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x68], eax
mov eax, dword [sym.imp.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
push 3
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
inc dword [eax]
pop edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], ebx
xor esi, esi
inc esi
push 0x104de6c
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
push 0x80070057
push dword [ebp - 0x44]
lea eax, [ebp - 0x78]
push eax
call fcn.0102f887
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x54], ebx
jne 0x1064262
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]
push dword [eax]
mov ecx, dword [ebp - 0x68]
push ebx
call fcn.01041239
push ebx
push ebx
push edi
push ebx
push esi
push 0x80000000
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
push eax
mov byte [ebp - 4], 3
call fcn.0104dedf
test al, al
je 0x106428e
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], eax
jne 0x1064299
push eax
call sub.MFC42u.dll_operatornew
pop ecx
mov dword [ebp - 0x44], eax
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x10642b8
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], ebx
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x10642c1
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x64], eax
jne 0x10642cf
push eax
push dword [ebp - 0x44]
push ebx
call fcn.01015113
mov edx, eax
push 9
pop ecx
xor eax, eax
mov word [ebp - 0x38], bx
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x38]
push eax
push edx
call dword [sym.imp.msvcrt.dll__ultow]
mov ecx, dword [ebp - 0x68]
add esp, 0xc
push eax
call fcn.01034c49
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], esi
call fcn.01014831
lea ecx, [ebp - 0x40]
call fcn.0104dea3
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010032ea
leave
ret 0xc
cmp dword [ebp - 0x58], edi
jne 0x106426f
cmp dword [ebp - 0x54], ebx
setl al
jmp 0x1064271
mov al, 1
cmp al, bl
je 0x104dd5b
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov dword [ebp - 0x48], esi
jmp 0x104de43
lea ecx, [ebp - 0x58]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x10642a6
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], 0x8007000e
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov dword [ebp - 0x48], esi
jmp 0x104de3b
mov dword [ebp - 0x54], 0x8007000e
jmp 0x10642d6
lea ecx, [ebp - 0x58]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x104de26
mov dword [ebp - 0x54], 0x8000ffff
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x58]
jmp 0x104de26