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

Disassembly:
push 0x2c4
mov eax, 0x1029c047
call fcn.1010062a
mov esi, ecx
mov ebx, dword [ebp + 8]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push sym.nsDui.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath
lea ecx, [ebp - 0x98]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.nsDui.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
cmp word [eax], di
jne 0x100cea4c
test ebx, ebx
je 0x100ce9a3
push ebx
lea ecx, [ebp - 0x98]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push accept
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push edi
cmp ebx, 0xffffffff
jne 0x100ce9d1
push str.Error_opening_file
jmp 0x100ceb22
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x100ceabc
cmp edi, 0x400000
ja 0x100ceacd
and dword [ebp - 0x2d0], 0
push edi
call fcn.10100009
pop ecx
push 0
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x2cc], eax
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], edi
je 0x100cea43
mov edi, dword [ebp - 0x2cc]
push edi
call fcn.100ff9f0
pop ecx
mov ecx, esi
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
jmp 0x100ceb22
push dword [ebp + 0xc]
push edi
jmp 0x100ceb41
push eax
lea ecx, [ebp - 0x98]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
cmp byte [sym.nsDui.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x100cea69
mov edi, dword [sym.nsDui.dll_void__DuiLib::CPaintManagerUI::m_hResourceZip]
jmp 0x100cea7b
mov ecx, dword [ebp - 0x98]
xor edx, edx
push 2
call fcn.100ab32b
pop ecx
mov edi, eax
test edi, edi
jne 0x100cea8a
push edi
push str.Error_opening_zip_file
jmp 0x100ceb22
lea eax, [ebp - 0x2c8]
mov edx, ebx
push eax
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov ecx, edi
call fcn.100ab390
add esp, 0xc
test eax, eax
je 0x100ceab2
push 0
push str.Could_not_find_ziped_file
jmp 0x100ceb22
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
jne 0x100ceac5
push 0
push str.File_is_empty
jmp 0x100ceb22
cmp ebx, 0x400000
jbe 0x100cead6
push 0
push str.File_too_large
jmp 0x100ceb22
push ebx
call fcn.10100009
mov edx, dword [ebp - 0x2d0]
mov ecx, edi
push ebx
push eax
mov dword [ebp - 0x2cc], eax
call fcn.100ab490
add esp, 0xc
test eax, eax
je 0x100ceb2d
cmp eax, 0x600
je 0x100ceb2d
push dword [ebp - 0x2cc]
call fcn.100ff9f0
cmp byte [sym.nsDui.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
pop ecx
jne 0x100ceb1b
mov ecx, edi
call fcn.100ab4c3
push 0
push str.Could_not_unzip_file
mov ecx, esi
call sym.nsDui.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x100ceb58
cmp byte [sym.nsDui.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x100ceb3d
mov ecx, edi
call fcn.100ab4c3
push dword [ebp + 0xc]
push ebx
mov edi, dword [ebp - 0x2cc]
mov ecx, esi
push edi
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.100ff9f0
pop ecx
lea ecx, [ebp - 0x98]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.101005d4
ret 8