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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1105f220
mov eax, dword fs:[0]
push eax
sub esp, 0x304
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 0x11033c0e
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 0x11033af3
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 0x11033a77
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], eax
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033c8d
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x11033a99
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033c87
push esi
mov dword [ebp - 0x308], 0
call fcn.1104c481
add esp, 4
mov edi, eax
lea eax, [ebp - 0x308]
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 - 0x308], esi
je 0x11033bfa
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 0x11033c87
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 0x11033b14
call sym.duilib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x11033b2c
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 0x11033b49
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033c8d
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x2f8]
push eax
push 1
push dword [ebp + 8]
push ebx
call fcn.11047ae0
add esp, 0x14
test eax, eax
je 0x11033b80
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033c8d
mov esi, dword [ebp - 0xc4]
test esi, esi
jne 0x11033ba1
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xffffffff
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x11033c87
push esi
call fcn.1104c481
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2f8]
push ebx
call fcn.11048660
add esp, 0x18
test eax, eax
je 0x11033be8
cmp eax, 0x600
je 0x11033be8
push edi
call fcn.1104c48a
add esp, 4
call sym.duilib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11033adc
push ebx
call fcn.110478c0
jmp 0x11033ad9
call sym.duilib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11033bfa
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 0x11033c7f
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 0x11033c8d
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 - 0x2f8], eax
push ebx
test eax, eax
jne 0x11033c44
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x11033c8d
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 0x11033c87
push esi
call fcn.1104c481
add esp, 4
mov edi, eax
push esi
push dword [ebp - 0x2f8]
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 0x11033d1b
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 0x11033cf9
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x11033cf9
push esi
mov dword [ebp - 0x30c], 0
call fcn.1104c481
add esp, 4
mov edi, eax
lea eax, [ebp - 0x30c]
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 - 0x30c], esi
je 0x11033d17
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 0x11033cf9
push 4
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x300]
push eax
push esi
push edi
call fcn.110436a0
mov ebx, eax
push edi
mov dword [ebp - 0x2fc], ebx
call fcn.1104c48a
add esp, 0x1c
test ebx, ebx
je 0x11033cf9
push 0x2c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.1104e150
mov eax, dword [ebp - 0x304]
add esp, 0xc
mov edx, dword [ebp - 0x300]
neg eax
mov dword [ebp - 0x34], eax
xor bl, bl
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x2f4]
imul edx, dword [ebp - 0x304]
push 0
push 0
push eax
push 0
lea eax, [ebp - 0x3c]
shl edx, 2
push eax
push 0
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2f4], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
mov dword [ebp - 0x2f8], edi
test edi, edi
je 0x11033cf9
mov eax, dword [ebp - 0x300]
xor esi, esi
imul eax, dword [ebp - 0x304]
test eax, eax
jle 0x11033eec
mov edx, dword [ebp - 0x2fc]
nop word [eax + eax]
mov eax, dword [ebp - 0x2f4]
mov cl, byte [edx + esi*4 + 3]
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 0x11033e78
movzx eax, byte [edx + esi*4 + 3]
movzx ecx, byte [edx + esi*4 + 2]
mov ebx, dword [ebp - 0x2fc]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [edi], dl
movzx eax, byte [ebx + esi*4 + 3]
movzx ecx, byte [ebx + esi*4 + 1]
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 [ebx + esi*4 + 3]
movzx ecx, byte [ebx + esi*4]
mov bl, 1
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, dword [ebp - 0x2fc]
jmp 0x11033e9b
mov al, byte [edx + esi*4 + 2]
mov byte [edi], al
mov eax, dword [ebp - 0x2f4]
movzx ecx, byte [edx + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x2f4]
movzx ecx, byte [edx + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x11033ed0
mov byte [eax + esi*4], 0
mov bl, 1
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
mov eax, dword [ebp - 0x300]
inc esi
imul eax, dword [ebp - 0x304]
cmp esi, eax
jl 0x11033df0
mov edi, dword [ebp - 0x2f8]
push dword [ebp - 0x2fc]
call fcn.1104c3f0
push 0x9c
call fcn.1104c37f
mov esi, eax
add esp, 8
mov dword [ebp - 0x2f8], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x11033f21
lea ecx, [esi + 0x14]
call sym.duilib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
jmp 0x11033f23
xor esi, esi
mov dword [esi], edi
mov eax, esi
mov ecx, dword [ebp - 0x300]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x304]
mov dword [esi + 8], ecx
mov byte [esi + 0x10], bl
jmp 0x11033cfb