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

Disassembly:
push 0x450
mov eax, 0x10120568
call fcn.100dec58
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x45c], edi
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CMarkup::Release_void_
call sym.UserAndPayClient.dll_public:_static_class_xx_DuiLib::CDuiString_const____cdecl_xx_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_class_xx_DuiLib::CDuiString_const__
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [ebp - 0x220]
push edi
mov dword [ebp - 4], ebx
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov byte [ebp - 4], 1
call sym.UserAndPayClient.dll_public:_static_class_xx_DuiLib::CDuiString_const____cdecl_xx_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.UserAndPayClient.dll_public:_bool___thiscall_xx_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x10086aad
push edi
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CDuiString_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x454], eax
push ebx
cmp eax, 0xffffffff
jne 0x10086a09
push str.Error_opening_file
jmp 0x10086b39
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x10086a21
push ebx
push str.File_is_empty
jmp 0x10086b39
cmp edi, 0x400000
jbe 0x10086a34
push ebx
push str.File_too_large
jmp 0x10086b39
push edi
mov dword [ebp - 0x458], ebx
call fcn.100ddfff
pop ecx
mov ebx, eax
lea eax, [ebp - 0x458]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x454]
mov dword [ebp - 0x45c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x458], edi
je 0x10086a8e
push ebx
call fcn.100de008
pop ecx
mov ecx, esi
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
jmp 0x10086b39
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call sym.UserAndPayClient.dll_public:_bool___thiscall_xx_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push dword [ebp - 0x45c]
mov bl, al
call fcn.100de008
pop ecx
jmp 0x10086c57
call sym.UserAndPayClient.dll_public:_static_class_xx_DuiLib::CDuiString_const____cdecl_xx_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CDuiString_const____thiscall_xx_DuiLib::CDuiString::operator_class_xx_DuiLib::CDuiString_const__
call sym.UserAndPayClient.dll_public:_static_bool___cdecl_xx_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x10086ad0
call sym.UserAndPayClient.dll_public:_static_void____cdecl_xx_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov ebx, eax
jmp 0x10086b2f
call sym.UserAndPayClient.dll_public:_static_class_xx_DuiLib::CDuiString_const____cdecl_xx_DuiLib::CPaintManagerUI::GetResourceZipPwd_void_
push eax
lea ecx, [ebp - 0x19c]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_class_xx_DuiLib::CDuiString_const__
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 2
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.1008757c
pop ecx
mov edi, eax
lea ecx, [ebp - 0x94]
push edi
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.100a3cf1
mov ebx, eax
pop ecx
pop ecx
test edi, edi
je 0x10086b1a
push edi
call fcn.100de008
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
mov edi, dword [ebp - 0x45c]
test ebx, ebx
jne 0x10086b47
push ebx
push str.Error_opening_zip_file
mov ecx, esi
call sym.UserAndPayClient.dll_private:_bool___thiscall_xx_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x10086c57
and dword [ebp - 0x458], 0
lea ecx, [ebp - 0x118]
push 0xffffffffffffffff
push edi
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_wchar_t_const___int_
push 0x10128d78
push 0x10128d7c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call sym.UserAndPayClient.dll_public:_int___thiscall_xx_DuiLib::CDuiString::Replace_wchar_t_const___wchar_t_const__
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x458]
push eax
push 1
lea ecx, [ebp - 0x118]
call sym.UserAndPayClient.dll_public:_wchar_t_const____thiscall_xx_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
push ebx
call fcn.100a36c8
add esp, 0x14
test eax, eax
je 0x10086ba7
push 0
push str.Could_not_find_ziped_file
jmp 0x10086c16
mov edi, dword [ebp - 0x224]
test edi, edi
jne 0x10086bb9
push edi
push str.File_is_empty
jmp 0x10086c16
cmp edi, 0x400000
jbe 0x10086bca
push 0
push str.File_too_large
jmp 0x10086c16
push edi
call fcn.100ddfff
push edi
push eax
push dword [ebp - 0x458]
mov dword [ebp - 0x454], eax
push ebx
call fcn.100a412b
add esp, 0x14
test eax, eax
je 0x10086c21
cmp eax, 0x600
je 0x10086c21
mov edi, dword [ebp - 0x454]
push edi
call fcn.100de008
pop ecx
call sym.UserAndPayClient.dll_public:_static_bool___cdecl_xx_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x10086c0f
push ebx
call fcn.100a34a7
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call sym.UserAndPayClient.dll_private:_bool___thiscall_xx_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov bl, al
jmp 0x10086c4c
call sym.UserAndPayClient.dll_public:_static_bool___cdecl_xx_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x10086c31
push ebx
call fcn.100a34a7
pop ecx
push dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x454]
push edi
call sym.UserAndPayClient.dll_public:_bool___thiscall_xx_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.100de008
pop ecx
lea ecx, [ebp - 0x118]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x220]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
mov al, bl
call fcn.100dec13
ret 8