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

Disassembly:
mov eax, 0x1105de7
call fcn.01003440
sub esp, 0x40
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 - 0x34], ebx
mov dword [ebp - 0x30], ebx
inc dword [eax]
push edi
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], ebx
xor edi, edi
inc edi
push 0x1042b68
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.0102f887
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 0x1063ba8
push ebx
push 0x80
push 3
push ebx
push edi
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1063bd2
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
jne 0x1063c57
cmp eax, ebx
jl 0x1063c57
je 0x1042b24
mov ecx, dword [ebp + 0x10]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0104e2a1
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 0x1063be3
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.01042b93
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 0x1063bfb
push 0x8007000e
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
push eax
call fcn.0102f887
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 0x1063c1f
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 0x1063c39
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
jne 0x1063c44
call fcn.0102dbb7
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 ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
cmp al, bl
jne 0x1042b24
jmp 0x1042a7c
cmp dword [ebp - 0x3c], 3
jne 0x1063bb6
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x1063bb8
mov al, 1
cmp al, bl
je 0x1042a05
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 0x1042b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
jmp 0x1042b2d
cmp dword [ebp - 0x3c], 3
jne 0x1063bf4
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x1042b5d
mov al, 1
jmp 0x1042b5d
cmp dword [ebp - 0x3c], 3
jne 0x1063c09
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x1063c0b
mov al, 1
cmp al, bl
je 0x1042abf
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jmp 0x1042b1f
cmp dword [ebp - 0x3c], 3
jne 0x1063c2d
cmp dword [ebp - 0x38], ebx
setl al
jmp 0x1063c2f
mov al, 1
cmp al, bl
je 0x1042af0
jmp 0x1063c13
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x1063c13
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x8000ffff
jmp 0x1042b1f
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 0x8000ffff
jmp 0x1042b24