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

Disassembly:
push 0x40
mov eax, 0x10e5528
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 - 0x34], ebx
mov dword [ebp - 0x30], ebx
inc dword [eax]
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], ebx
xor edi, edi
inc edi
push 0x102ca30
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], edi
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 - 0x24]
push eax
call fcn.0100a3ae
mov esi, dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_class_mmcerror::SC_const__]
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x38], ebx
jne 0x1067102
push ebx
push 0x80
push 3
push ebx
push edi
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x106712c
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], ebx
jne 0x10671b1
cmp eax, ebx
jl 0x10671b1
je 0x102c9f7
mov ecx, dword [ebp + 0x10]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0102e7b5
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x38], ebx
jne 0x106713d
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
mov dword [ebp + 0x10], ebx
call fcn.0102de75
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x38], ebx
jne 0x1067155
push 0x8007000e
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push eax
call fcn.0100a3ae
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x38], ebx
jne 0x1067179
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1067193
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jne 0x106719e
call fcn.0102ca5b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], edi
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
cmp al, bl
jne 0x102c9f7
jmp 0x102c94f
cmp dword [ebp - 0x3c], 3
jne 0x1067110
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x1067112
mov al, 1
cmp al, bl
je 0x102c8d8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
jmp 0x102ca0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
jmp 0x102ca00
cmp dword [ebp - 0x3c], 3
jne 0x106714e
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x102ca27
mov al, 1
jmp 0x102ca27
cmp dword [ebp - 0x3c], 3
jne 0x1067163
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x1067165
mov al, 1
cmp al, bl
je 0x102c992
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jmp 0x102c9f2
cmp dword [ebp - 0x3c], 3
jne 0x1067187
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x1067189
mov al, 1
cmp al, bl
je 0x102c9c3
jmp 0x106716d
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x106716d
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x8000ffff
jmp 0x102c9f2
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x8000ffff
jmp 0x102c9f7