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

Disassembly:
push 0x6c
mov eax, 0x10e59b1
call fcn.0100c4d0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [sym.imp.mmcbase.DLL_unsigned_int_mmcerror::SC::s_CallDepth]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
inc dword [eax]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x50], edi
xor ebx, ebx
inc ebx
push 0x103de5c
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::SetFunctionName_unsigned_short_int_const__]
push 0x80070057
push dword [ebp - 0x3c]
lea eax, [ebp - 0x78]
push eax
call fcn.0100a3ae
push eax
lea ecx, [ebp - 0x54]
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], bl
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
cmp dword [ebp - 0x50], edi
jne 0x106739d
mov ecx, dword [ebp - 0x60]
push 0xffffffffffffffff
push edi
call fcn.01011bbd
push edi
push edi
push 3
push edi
push ebx
push 0x80000000
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
push eax
mov byte [ebp - 4], 3
call fcn.0103decf
test al, al
je 0x10673c9
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x64], edi
jne 0x10673e3
push eax
call fcn.0100f31c
pop ecx
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
cmp eax, edi
je 0x10673f6
push edi
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], edi
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x1067409
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x58], eax
jne 0x1067417
push eax
push dword [ebp - 0x3c]
push edi
call fcn.0103cb90
mov edx, eax
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
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 - 0x60]
add esp, 0xc
push eax
call fcn.0102b350
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
call fcn.0103b009
lea ecx, [ebp - 0x40]
call fcn.0103de93
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::destructor_void_]
mov eax, esi
call fcn.0100c50d
ret 0xc
cmp dword [ebp - 0x54], 3
jne 0x10673ab
cmp dword [ebp - 0x50], edi
setl al
jmp 0x10673ad
mov al, bl
test al, al
je 0x103dd60
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov dword [ebp - 0x44], ebx
jmp 0x103de43
lea ecx, [ebp - 0x54]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
push eax
mov ecx, esi
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_class_mmcerror::SC_const__]
mov dword [ebp - 0x44], ebx
jmp 0x103de3b
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x50], 0x8007000e
lea eax, [ebp - 0x54]
jmp 0x10673d2
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x50], 0x8007000e
jmp 0x103de24
lea ecx, [ebp - 0x54]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::FromLastError_void_]
jmp 0x103de27
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x50], 0x8000ffff
jmp 0x103de24