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

Disassembly:
push 0x308
mov eax, 0x11098f68
call fcn.11053e84
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
jne 0x11034129
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], ebx
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x1103403a
push dword [ebp + 8]
lea ecx, [ebp - 0xc0]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push ebx
push 0x80
push 3
xor ecx, ecx
push ebx
inc ecx
push ecx
push SysReAllocString
lea ecx, [ebp - 0xc0]
call sym.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2fc], eax
cmp eax, 0xffffffff
jne 0x11033fe6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x110341ab
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x11033fd2
push esi
mov dword [ebp - 0x30c], ebx
call fcn.11053fbc
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x30c]
push eax
push esi
push edi
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30c], esi
je 0x11034118
push edi
call fcn.11053fc5
pop ecx
jmp 0x11033fd2
call sym.DuiLib.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x1103405b
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x11034072
push 2
push ebx
lea ecx, [ebp - 0xc0]
call sym.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call fcn.1104ff82
add esp, 0xc
mov dword [ebp - 0x2fc], eax
test eax, eax
je 0x11033fd2
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x300]
push ecx
xor ecx, ecx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.1104f672
add esp, 0x14
test eax, eax
jne 0x11033fd2
mov esi, dword [ebp - 0xc4]
test esi, esi
je 0x11033fd2
push esi
call fcn.11053fbc
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x300]
push dword [ebp - 0x2fc]
call fcn.1105037a
add esp, 0x18
test eax, eax
je 0x11034103
cmp eax, 0x600
je 0x11034103
push edi
call fcn.11053fc5
pop ecx
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11033fd2
push dword [ebp - 0x2fc]
call fcn.1104f452
jmp 0x11034037
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11034118
push dword [ebp - 0x2fc]
call fcn.1104f452
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x110341a3
push eax
push dword [ebp + 8]
call sym.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x310], esi
test esi, esi
je 0x110341ab
push esi
call sym.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x300], eax
push esi
test eax, eax
jne 0x11034165
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x110341ab
call sym.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x110341ab
push esi
call fcn.11053fbc
pop ecx
push esi
push dword [ebp - 0x300]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.11058d50
add esp, 0xc
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x11034231
push ebx
push 0x80
push 3
push ebx
xor eax, eax
inc eax
push eax
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2fc], eax
cmp eax, 0xffffffff
je 0x11034452
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x11034452
push esi
mov dword [ebp - 0x310], ebx
call fcn.11053fbc
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x310]
push eax
push esi
push edi
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x310], esi
je 0x11034229
push edi
call fcn.11053fc5
pop ecx
mov edi, ebx
test edi, edi
je 0x11034452
push 4
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x308]
push eax
push esi
push edi
call fcn.1104be9f
push edi
mov dword [ebp - 0x2fc], eax
call fcn.11053fc5
mov edi, dword [ebp - 0x2fc]
add esp, 0x1c
test edi, edi
je 0x11034452
push 0x2c
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.110581e0
mov eax, dword [ebp - 0x304]
add esp, 0xc
mov ecx, dword [ebp - 0x308]
neg eax
mov dword [ebp - 0x34], eax
xor eax, eax
inc eax
mov dword [ebp - 0x38], ecx
imul ecx, dword [ebp - 0x304]
push 0x20
mov word [ebp - 0x30], ax
pop eax
push ebx
push ebx
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x2f8]
push eax
push ebx
lea eax, [ebp - 0x3c]
shl ecx, 2
push eax
push ebx
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x2f1], bl
mov dword [ebp - 0x2f8], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x30c], eax
test eax, eax
je 0x11034452
mov edx, dword [ebp - 0x2f8]
test edx, edx
je 0x11034452
mov ecx, dword [ebp - 0x308]
mov esi, ebx
imul ecx, dword [ebp - 0x304]
test ecx, ecx
jle 0x11034400
mov al, byte [edi + esi*4 + 3]
mov byte [edx + esi*4 + 3], al
mov eax, 0xff
mov ecx, dword [ebp - 0x2f8]
cmp byte [ecx + esi*4 + 3], al
jae 0x1103438a
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
mov ecx, dword [ebp - 0x2f8]
xor edx, edx
mov byte [ecx + esi*4], al
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4 + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x2f8]
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, 0xff
div ecx
mov ecx, dword [ebp - 0x2f8]
mov byte [ecx + esi*4 + 2], al
xor ecx, ecx
inc ecx
mov byte [ebp - 0x2f1], cl
jmp 0x110343af
mov al, byte [edi + esi*4 + 2]
mov byte [ecx + esi*4], al
mov eax, dword [ebp - 0x2f8]
mov cl, byte [edi + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x2f8]
mov cl, byte [edi + esi*4]
mov byte [eax + esi*4 + 2], cl
xor ecx, ecx
inc ecx
mov edx, dword [ebp - 0x2f8]
mov eax, dword [ebp + 0x10]
cmp dword [edx + esi*4], eax
jne 0x110343ea
mov byte [edx + esi*4], bl
mov eax, dword [ebp - 0x2f8]
mov byte [ebp - 0x2f1], cl
mov byte [eax + esi*4 + 1], bl
mov eax, dword [ebp - 0x2f8]
mov byte [eax + esi*4 + 2], bl
mov eax, dword [ebp - 0x2f8]
mov byte [eax + esi*4 + 3], bl
mov edx, dword [ebp - 0x2f8]
mov eax, dword [ebp - 0x308]
inc esi
imul eax, dword [ebp - 0x304]
cmp esi, eax
jl 0x11034308
push edi
call fcn.1104bd6a
push 0x98
call fcn.11053f56
pop ecx
pop ecx
mov dword [ebp - 0x300], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x1103442b
mov ecx, eax
call fcn.110271a5
mov ebx, eax
mov eax, dword [ebp - 0x30c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x308]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x304]
mov dword [ebx + 8], eax
mov al, byte [ebp - 0x2f1]
mov byte [ebx + 0xc], al
mov eax, ebx
jmp 0x11034454
xor eax, eax
call fcn.11053e2e
ret