Function at 0x493957
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push 0x354
mov eax, 0x5c6d8e
call fcn.004b8fda
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test esi, esi
jne 0x493b40
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__
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 0x493a44
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
push 1
push SysReAllocString
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 dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34c], eax
cmp eax, 0xffffffff
jne 0x4939ea
lea ecx, [ebp - 0x94]
or dword [ebp - 4], 0xffffffff
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x493cfa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4939d6
push edi
mov dword [ebp - 0x354], ebx
call fcn.004b8b32
pop ecx
push ebx
mov esi, eax
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x354]
push eax
push edi
push esi
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x354], edi
je 0x493b26
push esi
call fcn.004b8b3b
pop ecx
jmp 0x4939d6
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 0x493a65
call sym.setup_SmartCloudPYInput.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x493a7c
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 dword [ebp - 0x34c], eax
test eax, eax
je 0x4939d6
lea ecx, [ebp - 0x348]
push ecx
lea ecx, [ebp - 0x358]
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.004ac03e
add esp, 0x14
test eax, eax
jne 0x4939d6
mov edi, dword [ebp - 0x11c]
test edi, edi
je 0x4939d6
push edi
call fcn.004b8b32
push 3
mov esi, eax
push edi
push esi
push dword [ebp - 0x358]
mov dword [ebp - 0x350], esi
push dword [ebp - 0x34c]
call fcn.004ac9bd
add esp, 0x18
test eax, eax
je 0x493b11
cmp eax, 0x600
je 0x493b11
push esi
call fcn.004b8b3b
pop ecx
call sym.setup_SmartCloudPYInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x4939d6
push dword [ebp - 0x34c]
call fcn.004abe98
jmp 0x493a41
call sym.setup_SmartCloudPYInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x493b26
push dword [ebp - 0x34c]
call fcn.004abe98
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov esi, dword [ebp - 0x350]
jmp 0x493cf2
push str.fullpath
push esi
call fcn.0059c3ba
pop ecx
pop ecx
test eax, eax
jne 0x493c06
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x118]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
push ebx
push 0x80
push 3
xor eax, eax
lea ecx, [ebp - 0x118]
inc eax
push ebx
push eax
push SysReAllocString
mov dword [ebp - 4], eax
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 dword [ebp - 0x354], eax
cmp eax, 0xffffffff
jne 0x493ba2
lea ecx, [ebp - 0x118]
jmp 0x4939dc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x493b97
push edi
mov dword [ebp - 0x350], ebx
call fcn.004b8b32
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x350]
push eax
push edi
push esi
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x350], edi
je 0x493bf2
push esi
call fcn.004b8b3b
pop ecx
jmp 0x493b97
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x493cf2
push str.respath
push esi
call fcn.0059c3ba
pop ecx
pop ecx
test eax, eax
jne 0x493c78
call sym.setup_SmartCloudPYInput.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push 0x5d4300
push dword [ebp + 8]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x358], eax
test eax, eax
je 0x493de5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x493cfa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x358]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.004b8b32
push edi
push esi
mov esi, eax
push esi
call fcn.005986a0
add esp, 0x10
jmp 0x493cf2
push esi
push dword [ebp + 8]
call sym.setup_SmartCloudPYInput.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x35c], esi
test esi, esi
je 0x493cfa
push esi
call sym.setup_SmartCloudPYInput.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x358], eax
push esi
test eax, eax
jne 0x493cb4
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x493cfa
call sym.setup_SmartCloudPYInput.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x493cfa
push edi
call fcn.004b8b32
pop ecx
push edi
push dword [ebp - 0x358]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.005986a0
add esp, 0xc
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x493d7a
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34c], eax
cmp eax, 0xffffffff
je 0x493de5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x493de5
push edi
mov dword [ebp - 0x35c], ebx
call fcn.004b8b32
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x35c]
push eax
push edi
push esi
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x35c], edi
je 0x493d76
push esi
call fcn.004b8b3b
pop ecx
mov esi, ebx
test esi, esi
je 0x493de5
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x360], eax
test eax, eax
je 0x493de1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x493de1
push edi
push esi
push eax
mov dword [ebp - 0x34c], ebx
call fcn.005986a0
mov esi, dword [ebp - 0x360]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x34c]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x493dda
push ebx
push dword [ebp - 0x34c]
call fcn.0044a8a0
pop ecx
pop ecx
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
jmp 0x493de7
xor eax, eax
call fcn.004b8f84
ret