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

Disassembly:
mov eax, 0x1105eaa
call fcn.01003440
sub esp, 0x54
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [sym.imp.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
push esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
inc dword [eax]
push edi
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], ebx
xor esi, esi
inc esi
push 0x10d7ae8
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.0102f887
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 0x10d77fd
cmp dword [ebp - 0x50], 3
jne 0x10d77e8
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10d77ea
mov al, 1
cmp al, bl
je 0x10d77fd
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 0x10d7850
mov eax, dword [ebp + 0x10]
push 0x80070057
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.0102f887
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 0x10d7858
cmp dword [ebp - 0x50], 3
jne 0x10d783d
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10d783f
mov al, 1
cmp al, bl
je 0x10d7858
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 0x10d7ac7
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.0104dedf
test al, al
jne 0x10d789c
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 0x10d7abf
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
je 0x10d78ec
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.0104dea3
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 0x10d7ad6
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x10d7a12
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0104e2a1
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 0x10d7954
cmp dword [ebp - 0x50], 3
jne 0x10d7939
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10d793b
mov al, 1
cmp al, bl
je 0x10d7954
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 0x10d7ab3
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.01042b93
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_]
cmp dword [ebp - 0x4c], ebx
push 3
pop edi
je 0x10d79ab
cmp dword [ebp - 0x50], edi
jne 0x10d79a0
cmp dword [ebp - 0x4c], ebx
setl al
jmp 0x10d79a2
mov al, 1
cmp al, bl
je 0x10d79ab
lea eax, [ebp - 0x50]
jmp 0x10d79e6
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 0x10d79d1
lea ecx, [ebp - 0x50]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x10d79e6
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x1c]
je 0x10d7a04
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], 0x8000ffff
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.0102dbb7
jmp 0x10d7ab3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0102dbb7
jmp 0x10d7a15
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.01031781
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CreateILockBytesOnHGlobal]
cmp eax, ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
je 0x10d7a46
setl al
cmp al, bl
jne 0x10d7a92
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.01030773
push dword [ebp - 0x30]
mov ecx, dword [eax]
push dword [ebp - 0x34]
push eax
call dword [ecx + 0x18]
cmp eax, ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
je 0x10d7a74
setl al
cmp al, bl
jne 0x10d7a92
push dword [ebp + 0x10]
push ebx
push ebx
push 0x12
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_StgOpenStorageOnILockBytes]
cmp eax, ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
je 0x10d7a92
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]
cmp eax, ebx
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
je 0x10d7ab3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.01042939
lea ecx, [ebp + 0xc]
call fcn.0104dea3
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]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc