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

Disassembly:
push 0x38c
mov eax, 0x5c6ddf
call fcn.004b8fda
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test esi, esi
jne 0x493fad
call sym.setup_SmartCloudPYInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xc0]
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 0x493ed9
push dword [ebp + 8]
lea ecx, [ebp - 0xc0]
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 - 0xc0]
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 esi, eax
cmp esi, 0xffffffff
jne 0x493e7c
lea ecx, [ebp - 0xc0]
or dword [ebp - 4], 0xffffffff
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x49414d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x493e68
push edi
mov dword [ebp - 0x390], ebx
call fcn.004b8b32
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 0x390]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x390], edi
je 0x493fa2
push ebx
call fcn.004b8b3b
pop ecx
lea ecx, [ebp - 0xc0]
or dword [ebp - 4], 0xffffffff
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x49414b
call sym.setup_SmartCloudPYInput.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0xc0]
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 0x493efa
call sym.setup_SmartCloudPYInput.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x493f11
push 2
push ebx
lea ecx, [ebp - 0xc0]
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 esi, eax
test esi, esi
je 0x493e68
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x384]
push eax
push 1
push dword [ebp + 8]
push esi
call fcn.004ac03e
add esp, 0x14
test eax, eax
jne 0x493e68
mov edi, dword [ebp - 0x148]
test edi, edi
je 0x493e68
push edi
call fcn.004b8b32
push 3
push edi
mov ebx, eax
push ebx
push dword [ebp - 0x384]
push esi
call fcn.004ac9bd
add esp, 0x18
test eax, eax
je 0x493f92
cmp eax, 0x600
je 0x493f92
push ebx
call fcn.004b8b3b
pop ecx
call sym.setup_SmartCloudPYInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x493ec5
push esi
call fcn.004abe98
jmp 0x493ec4
call sym.setup_SmartCloudPYInput.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x493fa2
push esi
call fcn.004abe98
pop ecx
lea ecx, [ebp - 0xc0]
jmp 0x494061
push str.fullpath
push esi
call fcn.0059c3ba
pop ecx
pop ecx
test eax, eax
jne 0x49406f
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x144]
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 - 0x144]
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 esi, eax
cmp esi, 0xffffffff
jne 0x49400b
lea ecx, [ebp - 0x144]
jmp 0x493e6e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x494000
push edi
mov dword [ebp - 0x394], ebx
call fcn.004b8b32
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 0x394]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x394], edi
je 0x49405b
push ebx
call fcn.004b8b3b
pop ecx
lea ecx, [ebp - 0x144]
jmp 0x493ecb
lea ecx, [ebp - 0x144]
or dword [ebp - 4], 0xffffffff
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x494147
push str.respath
push esi
call fcn.0059c3ba
pop ecx
pop ecx
test eax, eax
jne 0x4940d8
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 ebx, eax
test ebx, ebx
je 0x4943da
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49414b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.004b8b32
push edi
mov ebx, eax
push esi
push ebx
call fcn.005986a0
add esp, 0x10
jmp 0x494147
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
test esi, esi
je 0x49414d
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 - 0x384], eax
push esi
test eax, eax
jne 0x49410e
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x49414d
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 0x49414d
push edi
call fcn.004b8b32
pop ecx
push edi
push dword [ebp - 0x384]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.005986a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x4941c4
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4943da
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4943da
push edi
mov dword [ebp - 0x38c], ebx
call fcn.004b8b32
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 0x38c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38c], edi
je 0x4941bc
push ebx
call fcn.004b8b3b
pop ecx
xor ebx, ebx
test ebx, ebx
je 0x4943da
push 4
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x380]
push eax
lea eax, [ebp - 0x388]
push eax
push edi
push ebx
call fcn.004b6549
push ebx
mov edi, eax
call fcn.004b8b3b
add esp, 0x1c
test edi, edi
je 0x4943da
push 0x2c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.005991a0
mov eax, dword [ebp - 0x380]
add esp, 0xc
mov ecx, dword [ebp - 0x388]
neg eax
mov dword [ebp - 0x34], eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x38], ecx
imul ecx, dword [ebp - 0x380]
inc eax
push 0x20
mov word [ebp - 0x30], ax
mov bl, dl
pop eax
push edx
push edx
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x37c]
push eax
push edx
lea eax, [ebp - 0x3c]
shl ecx, 2
push eax
push edx
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x375], bl
mov dword [ebp - 0x37c], edx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x384], eax
test eax, eax
je 0x4943da
mov eax, dword [ebp - 0x388]
xor esi, esi
imul eax, dword [ebp - 0x380]
test eax, eax
jle 0x494388
mov edx, 0xff
mov eax, dword [ebp - 0x37c]
mov cl, byte [edi + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov ebx, dword [ebp - 0x37c]
cmp byte [ebx + esi*4 + 3], dl
jae 0x494307
movzx ecx, byte [edi + esi*4 + 3]
xor edx, edx
movzx eax, byte [edi + esi*4 + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
xor edx, edx
mov byte [ebx + esi*4], al
mov ebx, 0xff
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4 + 1]
imul eax, ecx
mov ecx, dword [ebp - 0x37c]
div ebx
xor edx, edx
mov byte [ecx + esi*4 + 1], al
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4]
imul eax, ecx
mov ecx, dword [ebp - 0x37c]
div ebx
xor edx, edx
inc edx
mov byte [ecx + esi*4 + 2], al
mov bl, dl
mov byte [ebp - 0x375], bl
jmp 0x494332
mov al, byte [edi + esi*4 + 2]
xor edx, edx
mov byte [ebx + esi*4], al
inc edx
mov eax, dword [ebp - 0x37c]
mov cl, byte [edi + esi*4 + 1]
mov bl, byte [ebp - 0x375]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x37c]
mov cl, byte [edi + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x37c]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x49436d
mov byte [eax + esi*4], 0
mov bl, dl
mov eax, dword [ebp - 0x37c]
mov byte [ebp - 0x375], bl
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x37c]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x37c]
mov byte [eax + esi*4 + 3], 0
mov eax, dword [ebp - 0x388]
inc esi
imul eax, dword [ebp - 0x380]
mov edx, 0xff
cmp esi, eax
jl 0x49428d
push edi
call fcn.004b8a05
push 0x9c
call fcn.004b8af1
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x38c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x4943b7
lea ecx, [esi + 0x14]
call sym.setup_SmartCloudPYInput.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
jmp 0x4943b9
xor esi, esi
mov eax, dword [ebp - 0x384]
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0x388]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x380]
mov dword [esi + 8], ecx
mov byte [esi + 0x10], bl
jmp 0x4943dc
xor eax, eax
call fcn.004b8f84
ret