Function at 0x10053886
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x2c4
mov eax, 0x1006d5e4
call fcn.1005416a
call sym.DuiLib32.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor ebx, ebx
mov dword [ebp - 4], ebx
call sym.DuiLib32.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.DuiLib32.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x100539b3
push dword [ebp + 8]
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push ebx
push 0x80
push 3
push ebx
xor esi, esi
lea ecx, [ebp - 0x94]
inc esi
push esi
push SysReAllocString
call sym.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10053a6c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
test eax, eax
jne 0x1005391b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10053a6c
and dword [ebp - 0x2cc], 0
push eax
call fcn.100540e3
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2c8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x2c8]
cmp dword [ebp - 0x2cc], ebx
je 0x10053962
push edi
call fcn.100540ec
jmp 0x10053a6b
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
cmp eax, 0xffffffff
je 0x100539ad
and dword [ebp - 0x2c8], 0
lea ecx, [ebp - 0x2c8]
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x10053ab8
call sym.DuiLib32.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x100539d4
call sym.DuiLib32.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x100539eb
push 2
push ebx
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.1002801b
add esp, 0xc
mov edi, eax
test edi, edi
je 0x10053a23
lea eax, [ebp - 0x2c4]
xor esi, esi
push eax
lea eax, [ebp - 0x2d0]
inc esi
push eax
push esi
push dword [ebp + 8]
push edi
call fcn.10027a5c
add esp, 0x14
test eax, eax
jne 0x10053a23
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
test eax, eax
jne 0x10053a2a
mov esi, ebx
jmp 0x10053abe
push eax
call fcn.100540e3
push 3
push dword [ebp - 0x2cc]
mov ebx, eax
push ebx
push dword [ebp - 0x2d0]
push edi
call fcn.100283db
add esp, 0x18
test eax, eax
je 0x10053a70
cmp eax, 0x600
je 0x10053a70
push ebx
call fcn.100540ec
pop ecx
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x10053a6c
push edi
call fcn.100278b6
pop ecx
xor esi, esi
jmp 0x10053abe
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10053ab7
and dword [ebp - 0x2c8], 0
lea eax, [ebp - 0x2c8]
push 0
push eax
push dword [ebp - 0x2cc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.100540ec
pop ecx
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, esi
call fcn.10054125
ret