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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d669f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10145188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
push 0x100ee700
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call dword [0x100ec95c]
push 0x100ee700
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call dword [0x100ec95c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 0xa0
test edi, edi
je 0x10075d74
test esi, esi
je 0x10075d74
mov edi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x2e
push 0
push esi
call edi
test eax, eax
je 0x10075d74
push 0x2e
push 0
push esi
call edi
mov edi, eax
lea esi, [ebp - 0x38]
call fcn.10075db0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x34]
push str.Using_Previewer:___s
push edx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
mov esi, ebx
call fcn.10075ea0
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], 0
je 0x10075d58
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea esi, [ebx + 0xbc8]
push esi
push 0x100ed6bc
push 5
push 0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x10075b67
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebx + 0xbcc]
push edx
push 0x100ee10c
push eax
mov eax, dword [ecx]
call eax
mov esi, dword [esi]
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [ebx + 0xbd0]
push edx
push 0x100ee11c
push esi
call eax
mov eax, dword [ebx + 0xbcc]
test eax, eax
je 0x10075bbb
mov edx, dword [ebp - 0x3c]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
push str._IID_IInitializeWithFile
lea ecx, [ebp - 0x34]
mov edi, eax
call dword [0x100ec930]
lea ecx, [ebp - 0x38]
push ecx
call fcn.10075990
add esp, 4
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call dword [0x100ec92c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
jmp 0x10075c95
cmp dword [ebx + 0xbd0], 0
je 0x10075c95
mov edx, dword [ebp - 0x3c]
push 0
push 0
push 3
push 0
push 1
push 1
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10075c95
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0x40
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebx + 0xddc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10075c8e
mov edx, dword [ebp - 0x3c]
push 0
lea ecx, [ebp - 0x3c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0xddc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebx + 0xddc]
lea edi, [ebx + 0xde0]
push edi
push 1
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebx + 0xbd0]
mov ecx, dword [edi]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
push ecx
push eax
call edx
push str._IID_IInitializeWithStream
lea ecx, [ebp - 0x34]
mov edi, eax
call dword [0x100ec930]
lea eax, [ebp - 0x38]
push eax
call fcn.10075990
add esp, 4
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call dword [0x100ec92c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0xdec]
push 1
call dword [sym.imp.DuiLib_u.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
mov eax, dword [ebx + 0xbc8]
test eax, eax
je 0x10075d58
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x44]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
push str._SetWindow
lea ecx, [ebp - 0x34]
mov edi, eax
call dword [0x100ec930]
lea ecx, [ebp - 0x44]
push ecx
call fcn.10075990
add esp, 4
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call dword [0x100ec92c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [ebx + 0xbc8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x14]
call eax
push str._DoPreview
lea ecx, [ebp - 0x34]
mov edi, eax
call dword [0x100ec930]
lea ecx, [ebp - 0x38]
push ecx
call fcn.10075990
add esp, 4
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call dword [0x100ec92c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 1
mov ecx, ebx
call fcn.10075f30
push 0
mov ecx, ebx
call fcn.10075f30
mov dword [ebp - 0x48], 0
jmp 0x10075d74
push str.None
lea ecx, [ebp - 0x34]
call dword [0x100ec930]
mov edx, dword [ebx + 4]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret 0x10