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

Disassembly:
push 0x2c4
mov eax, 0x5c6910
call fcn.004b8fda
call sym.setup_SmartCloudPYInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor ebx, ebx
mov dword [ebp - 4], ebx
call sym.setup_SmartCloudPYInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.setup_SmartCloudPYInput.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x49473f
push dword [ebp + 8]
lea ecx, [ebp - 0x94]
call sym.setup_SmartCloudPYInput.exe_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.setup_SmartCloudPYInput.exe_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 0x4947f8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c8], eax
test eax, eax
jne 0x4946a7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4947f8
and dword [ebp - 0x2cc], 0
push eax
call fcn.004b8b32
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 0x4946ee
push edi
call fcn.004b8b3b
jmp 0x4947f7
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 0x494739
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 0x494844
call sym.setup_SmartCloudPYInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.setup_SmartCloudPYInput.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.setup_SmartCloudPYInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x494760
call sym.setup_SmartCloudPYInput.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x494777
push 2
push ebx
lea ecx, [ebp - 0x94]
call sym.setup_SmartCloudPYInput.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.004ac5fd
add esp, 0xc
mov edi, eax
test edi, edi
je 0x4947af
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.004ac03e
add esp, 0x14
test eax, eax
jne 0x4947af
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
test eax, eax
jne 0x4947b6
mov esi, ebx
jmp 0x49484a
push eax
call fcn.004b8b32
push 3
push dword [ebp - 0x2cc]
mov ebx, eax
push ebx
push dword [ebp - 0x2d0]
push edi
call fcn.004ac9bd
add esp, 0x18
test eax, eax
je 0x4947fc
cmp eax, 0x600
je 0x4947fc
push ebx
call fcn.004b8b3b
pop ecx
call sym.setup_SmartCloudPYInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x4947f8
push edi
call fcn.004abe98
pop ecx
xor esi, esi
jmp 0x49484a
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 0x494843
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.004b8b3b
pop ecx
lea ecx, [ebp - 0x94]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, esi
call fcn.004b8f84
ret