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

Disassembly:
push 0x2c4
mov eax, 0x100b935b
call fcn.1006d999
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 0x1006cdc4
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::GetData_void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006ce7d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
test eax, eax
jne 0x1006cd2c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006ce7d
and dword [ebp - 0x2cc], 0
push eax
call fcn.1006d901
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 0x1006cd73
push edi
call fcn.1006d90a
jmp 0x1006ce7c
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 0x1006cdbe
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 0x1006cec9
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 0x1006cde5
call sym.DuiLib32.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x1006cdfc
push 2
push ebx
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call fcn.100408e0
add esp, 0xc
mov edi, eax
test edi, edi
je 0x1006ce34
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.10040048
add esp, 0x14
test eax, eax
jne 0x1006ce34
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
test eax, eax
jne 0x1006ce3b
mov esi, ebx
jmp 0x1006cecf
push eax
call fcn.1006d901
push 3
push dword [ebp - 0x2cc]
mov ebx, eax
push ebx
push dword [ebp - 0x2d0]
push edi
call fcn.10040ca0
add esp, 0x18
test eax, eax
je 0x1006ce81
cmp eax, 0x600
je 0x1006ce81
push ebx
call fcn.1006d90a
pop ecx
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1006ce7d
push edi
call fcn.1003fe6a
pop ecx
xor esi, esi
jmp 0x1006cecf
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 0x1006cec8
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.1006d90a
pop ecx
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, esi
call fcn.1006d943
ret