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

Disassembly:
push 0x54
mov eax, 0x10e55d0
call fcn.01001f95
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [sym.imp.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
inc dword [eax]
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], ebx
xor esi, esi
inc esi
push 0x10ca758
lea ecx, [ebp - 0x50]
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 + 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0100a3ae
mov edi, dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_class_mmcerror::SC_const__]
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x4c], ebx
je 0x10ca47e
cmp dword [ebp - 0x50], 3
jne 0x10ca463
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10ca465
mov al, 1
cmp al, bl
je 0x10ca47e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov dword [ebp - 0x10], esi
jmp 0x10ca73f
mov eax, dword [ebp + 0x10]
push 0x80070057
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.0100a3ae
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x4c], ebx
je 0x10ca4d3
cmp dword [ebp - 0x50], 3
jne 0x10ca4be
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10ca4c0
mov al, 1
cmp al, bl
je 0x10ca4d3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
jmp 0x10ca476
push ebx
push 0x80
push 3
push ebx
push esi
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
push eax
mov byte [ebp - 4], 4
call fcn.0103decf
test al, al
jne 0x10ca517
lea ecx, [ebp - 0x50]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
mov ecx, dword [ebp + 8]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov dword [ebp - 0x10], esi
jmp 0x10ca737
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x30], ebx
je 0x10ca567
mov edi, dword [ebp + 8]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, dword [sym.imp.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
inc dword [eax]
lea ecx, [ebp + 0xc]
mov dword [edi], 3
mov dword [edi + 4], 0x8000ffff
mov dword [ebp - 0x10], esi
call fcn.0103de93
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov eax, edi
jmp 0x10ca74e
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x10ca68a
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0102e7b5
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x4c], ebx
je 0x10ca5cf
cmp dword [ebp - 0x50], 3
jne 0x10ca5b4
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10ca5b6
mov al, 1
cmp al, bl
je 0x10ca5cf
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov dword [ebp - 0x10], esi
jmp 0x10ca72b
lea eax, [ebp - 0x40]
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], ebx
call fcn.0102de75
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 8
call edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
push 3
pop edi
cmp dword [ebp - 0x4c], ebx
je 0x10ca642
cmp dword [ebp - 0x50], edi
jne 0x10ca61b
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10ca61d
mov al, 1
cmp al, bl
je 0x10ca642
lea eax, [ebp - 0x50]
mov ecx, dword [ebp + 8]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
call fcn.0102ca5b
jmp 0x10ca72b
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x10ca668
lea ecx, [ebp - 0x50]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x10ca624
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x10ca67c
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], 0x8000ffff
jmp 0x10ca621
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0102ca5b
jmp 0x10ca68d
push 3
pop edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
mov dword [ebp - 0x1c], eax
call fcn.0100a5e6
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CreateILockBytesOnHGlobal]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x10ca6be
setl al
cmp al, bl
jne 0x10ca70a
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.0100a5cf
push dword [ebp - 0x30]
mov ecx, dword [eax]
push dword [ebp - 0x34]
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x10ca6ec
setl al
cmp al, bl
jne 0x10ca70a
push dword [ebp + 0x10]
push ebx
push ebx
push 0x12
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_StgOpenStorageOnILockBytes]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x10ca70a
setl al
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], esi
cmp eax, ebx
je 0x10ca72b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0102de27
lea ecx, [ebp + 0xc]
call fcn.0103de93
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov eax, dword [ebp + 8]
call fcn.01001fcf
ret 0xc