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

Disassembly:
push 0x180
mov eax, 0x4b6fe9
call fcn.00470654
mov esi, ecx
mov ebx, dword [ebp + 8]
call sym.BearSCInstall.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.BearSCInstall.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x54]
call sym.BearSCInstall.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.BearSCInstall.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.BearSCInstall.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x4376b1
push ebx
lea ecx, [ebp - 0x54]
call sym.BearSCInstall.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_char_const__
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x54]
call sym.BearSCInstall.exe_public:_char_const____thiscall_DuiLib::CDuiString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18c], eax
cmp eax, 0xffffffff
jne 0x43761a
mov eax, str.Error_opening_file
jmp 0x437692
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x43762f
mov eax, str.File_is_empty
jmp 0x437692
cmp edi, 0x400000
jbe 0x43763e
mov eax, str.File_too_large
jmp 0x437692
and dword [ebp - 0x184], 0
push edi
call fcn.00401a40
pop ecx
mov ebx, eax
lea eax, [ebp - 0x184]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x18c]
mov dword [ebp - 0x188], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x184], edi
je 0x43769a
push ebx
call fcn.004706fc
pop ecx
mov ecx, esi
call sym.BearSCInstall.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
mov eax, str.Could_not_read_file
push 0
push eax
jmp 0x437788
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call sym.BearSCInstall.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push dword [ebp - 0x188]
jmp 0x4377b6
call sym.BearSCInstall.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x54]
call sym.BearSCInstall.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.BearSCInstall.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x4376cf
call sym.BearSCInstall.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x4376e3
push 2
push edi
lea ecx, [ebp - 0x54]
call sym.BearSCInstall.exe_public:_char_const____thiscall_DuiLib::CDuiString::operator_char_const__void_const
push eax
call fcn.004289d4
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4376f4
push eax
push str.Error_opening_zip_file
jmp 0x437788
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x188]
push eax
push 1
push ebx
push edi
call fcn.0042816c
add esp, 0x14
test eax, eax
je 0x43771b
push 0
push str.Could_not_find_ziped_file
jmp 0x437788
mov ebx, dword [ebp - 0x58]
test ebx, ebx
jne 0x43772a
push ebx
push str.File_is_empty
jmp 0x437788
cmp ebx, 0x400000
jbe 0x43773b
push 0
push str.File_too_large
jmp 0x437788
push ebx
call fcn.00401a40
push 3
push ebx
push eax
push dword [ebp - 0x188]
mov dword [ebp - 0x184], eax
push edi
call fcn.00428d3f
add esp, 0x18
test eax, eax
je 0x437793
cmp eax, 0x600
je 0x437793
push dword [ebp - 0x184]
call fcn.004706fc
pop ecx
call sym.BearSCInstall.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x437781
push edi
call fcn.00427fe4
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call sym.BearSCInstall.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_char_const___char_const__
mov bl, al
jmp 0x4377be
call sym.BearSCInstall.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x4377a3
push edi
call fcn.00427fe4
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x184]
mov ecx, esi
push ebx
push edi
call sym.BearSCInstall.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.004706fc
pop ecx
lea ecx, [ebp - 0x54]
call sym.BearSCInstall.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.004705fe
ret 8