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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1105f1d2
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x1108a2ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x110335ae
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], 0
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 0x11033493
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 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xc0]
call sym.duilib.dll_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
jne 0x11033417
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], eax
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103362d
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x11033439
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033627
push esi
mov dword [ebp - 0x2f4], 0
call fcn.1104c481
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2f4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2f4], esi
je 0x1103359a
push edi
call fcn.1104c48a
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033627
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 0x110334b4
call sym.duilib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x110334cc
push 2
push 0
lea ecx, [ebp - 0xc0]
call sym.duilib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.110481d0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x110334e9
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103362d
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x2fc]
push eax
push 1
push dword [ebp + 8]
push ebx
call fcn.11047ae0
add esp, 0x14
test eax, eax
je 0x11033520
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103362d
mov esi, dword [ebp - 0xc4]
test esi, esi
jne 0x11033541
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033627
push esi
call fcn.1104c481
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2fc]
push ebx
call fcn.11048660
add esp, 0x18
test eax, eax
je 0x11033588
cmp eax, 0x600
je 0x11033588
push edi
call fcn.1104c48a
add esp, 4
call sym.duilib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1103347c
push ebx
call fcn.110478c0
jmp 0x11033479
call sym.duilib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1103359a
push ebx
call fcn.110478c0
add esp, 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1103361f
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 ebx, eax
test ebx, ebx
je 0x1103362d
push ebx
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 - 0x2fc], eax
push ebx
test eax, eax
jne 0x110335e4
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1103362d
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 0x11033627
push esi
call fcn.1104c481
add esp, 4
mov edi, eax
push esi
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.1104e5a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x110336bb
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x11033699
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x11033699
push esi
mov dword [ebp - 0x300], 0
call fcn.1104c481
add esp, 4
mov edi, eax
lea eax, [ebp - 0x300]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x300], esi
je 0x110336b7
push edi
call fcn.1104c48a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1104c36e
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x11033699
push 0x1c
mov dword [ebp - 0x304], 0
call fcn.1104c37f
add esp, 4
mov dword [ebp - 0x31c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x110336ef
mov ecx, eax
call fcn.110274a0
mov dword [ebp - 0x308], eax
jmp 0x110336f9
mov dword [ebp - 0x308], 0
push 4
lea eax, [ebp - 0x328]
mov dword [ebp - 4], 0xffffffff
push eax
lea eax, [ebp - 0x304]
push eax
push esi
push edi
call fcn.1103e5f0
mov ebx, eax
push edi
mov dword [ebp - 0x31c], ebx
call fcn.1104c48a
add esp, 0x18
mov dword [ebp - 0x318], 0
cmp dword [ebp - 0x304], 0
jle 0x110339a6
lea edi, [ebx + 8]
mov dword [ebp - 0x2fc], edi
mov eax, dword [edi]
mov esi, dword [edi - 8]
mov ebx, dword [edi - 4]
mov dword [ebp - 0x310], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x324], eax
test esi, esi
jne 0x11033775
push esi
jmp 0x11033976
push 0x2c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.1104e150
mov eax, dword [ebp - 0x310]
add esp, 0xc
mov dword [ebp - 0x38], ebx
neg eax
mov ebx, dword [ebp - 0x310]
imul ebx, dword [ebp - 0x30c]
mov dword [ebp - 0x34], eax
push 0
push 0
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2f5], 0
lea eax, [ebx*4]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2f4]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x320], eax
test eax, eax
jne 0x110337f9
push esi
jmp 0x11033976
xor esi, esi
test ebx, ebx
jle 0x11033905
mov edx, dword [ebp - 0x314]
add edx, 3
mov byte [ebp - 0x2f5], 1
mov dword [ebp - 0x300], edx
nop dword [eax]
mov eax, dword [ebp - 0x2f4]
mov cl, byte [edx + esi*4]
mov byte [eax + esi*4 + 3], cl
mov eax, dword [ebp - 0x2f4]
cmp byte [eax + esi*4 + 3], 0xff
lea edi, [eax + esi*4]
jae 0x1103389f
movzx eax, byte [edx + esi*4]
movzx ecx, byte [edx + esi*4 - 1]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [edi], dl
mov edi, dword [ebp - 0x300]
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 2]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x2f4]
shr edx, 7
mov byte [eax + esi*4 + 1], dl
movzx eax, byte [edi + esi*4]
movzx ecx, byte [edi + esi*4 - 3]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x2f4]
shr edx, 7
mov byte [eax + esi*4 + 2], dl
mov edx, edi
jmp 0x110338c3
mov al, byte [edx + esi*4 - 1]
mov byte [edi], al
mov eax, dword [ebp - 0x2f4]
movzx ecx, byte [edx + esi*4 - 2]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x2f4]
movzx ecx, byte [edx + esi*4 - 3]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x110338f6
mov byte [eax + esi*4], 0
mov eax, dword [ebp - 0x2f4]
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x2f4]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x2f4]
mov byte [eax + esi*4 + 3], 0
inc esi
cmp esi, ebx
jl 0x11033820
mov edi, dword [ebp - 0x2fc]
push 0x9c
call fcn.1104c37f
mov esi, eax
add esp, 4
mov dword [ebp - 0x32c], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x1103392f
lea ecx, [esi + 0x14]
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
jmp 0x11033931
xor esi, esi
mov eax, dword [ebp - 0x320]
mov ecx, dword [ebp - 0x308]
mov dword [esi], eax
mov eax, dword [ebp - 0x30c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x310]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x324]
mov dword [esi + 0xc], eax
mov al, byte [ebp - 0x2f5]
push esi
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x10], al
call fcn.11027f90
push dword [ebp - 0x314]
call fcn.1104c3f0
mov eax, dword [ebp - 0x318]
add edi, 0x10
inc eax
mov dword [ebp - 0x2fc], edi
add esp, 4
mov dword [ebp - 0x318], eax
cmp eax, dword [ebp - 0x304]
jl 0x11033748
mov ebx, dword [ebp - 0x31c]
push ebx
call fcn.1104c3f0
mov eax, dword [ebp - 0x308]
add esp, 4
jmp 0x1103369b