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

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0xc
mov eax, 0x4c449b
call fcn.0043c032
mov edi, dword [ebp + 0x2c0]
mov ebx, ecx
call sym.setup_WanNengWBInput.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
call sym.setup_WanNengWBInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp + 0x230]
call sym.setup_WanNengWBInput.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor esi, esi
mov dword [ebp - 4], esi
call sym.setup_WanNengWBInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.setup_WanNengWBInput.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x49f599
push edi
lea ecx, [ebp + 0x230]
call sym.setup_WanNengWBInput.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp + 0x230]
call sym.setup_WanNengWBInput.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
push esi
jne 0x49f50d
push str.Error_opening_file
mov ecx, ebx
call sym.setup_WanNengWBInput.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call sym.setup_WanNengWBInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0x2b8
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x49f522
push esi
push str.File_is_empty
jmp 0x49f4ce
cmp edi, 0x400000
jbe 0x49f532
push esi
push 0x4dbe2c
jmp 0x49f4ce
push edi
mov dword [ebp - 0x14], esi
call fcn.0043158e
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x49f578
push dword [ebp - 0x10]
call fcn.004b79f4
pop ecx
mov ecx, ebx
call sym.setup_WanNengWBInput.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push esi
push str.Could_not_read_file
jmp 0x49f4ce
push dword [ebp + 0x2c4]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call sym.setup_WanNengWBInput.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push dword [ebp - 0x10]
mov bl, al
call fcn.004b79f4
pop ecx
jmp 0x49f4d7
call sym.setup_WanNengWBInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp + 0x230]
call sym.setup_WanNengWBInput.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.setup_WanNengWBInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x49f5ba
call sym.setup_WanNengWBInput.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x49f5d1
push 2
push esi
lea ecx, [ebp + 0x230]
call sym.setup_WanNengWBInput.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.004b78e4
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x49f5e3
push esi
push str.Error_opening_zip_file
jmp 0x49f4ce
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.004b5fdc
add esp, 0x14
test eax, eax
je 0x49f608
push esi
push str.Could_not_find_ziped_file
jmp 0x49f4ce
mov eax, dword [ebp + 0x22c]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x49f51a
cmp eax, 0x400000
ja 0x49f52a
push eax
call fcn.0043158e
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.004b7941
add esp, 0x18
cmp eax, esi
je 0x49f66f
cmp eax, 0x600
je 0x49f66f
push edi
call fcn.004b79f4
pop ecx
call sym.setup_WanNengWBInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x49f664
push dword [ebp - 0x10]
call fcn.004b797b
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x49f4ce
call sym.setup_WanNengWBInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x49f681
push dword [ebp - 0x10]
call fcn.004b797b
pop ecx
push dword [ebp + 0x2c4]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call sym.setup_WanNengWBInput.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
jmp 0x49f58c