Function at 0x40dc30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x5dbcc8]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 8]
push ebx
push edi
lea ecx, [esp + 0x38]
push ecx
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [esi + 0x11], 0
je 0x40dc90
lea ecx, [esi + 0x24]
call dword [sym.imp.DuiLib_u.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const]
test al, al
jne 0x40de92
mov edi, dword [esi + 0xb0]
mov ebx, dword [esi + 0xb4]
add edi, dword [esi + 0xa8]
add ebx, dword [esi + 0xac]
jmp 0x40dc98
movsx ebx, byte [esi + 0x15]
add ebx, ebx
mov edi, ebx
sub edi, dword [esp + 0x38]
sub ebx, dword [esp + 0x3c]
add edi, dword [esp + 0x40]
add ebx, dword [esp + 0x44]
push 0x2c
lea edx, [esp + 0x6c]
push 0
push edx
call fcn.00549e40
add esp, 0xc
mov edx, ebx
imul edx, edi
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x78]
add edx, edx
push ecx
add edx, edx
push 0
mov dword [esp + 0x80], 0x28
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0x200001
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], edx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esi + 0x11], 0
mov dword [esp + 0x20], eax
je 0x40ddbe
xor eax, eax
push eax
push eax
lea ecx, [esi + 0x24]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebx
call dword [sym.imp.DuiLib_u.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
mov ecx, dword [esi + 4]
push eax
call dword [sym.imp.DuiLib_u.dll_public:_struct_DuiLib::tagTImageInfo_const____thiscall_DuiLib::CPaintManagerUI::GetImageEx_wchar_t_const___wchar_t_const___unsigned_long_int_]
xor ecx, ecx
cmp eax, ecx
je 0x40de92
push ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
push ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 8]
push 1
mov dword [esp + 0x60], edx
movzx ecx, byte [eax + 0xc]
push 0xff
push ecx
lea edx, [esi + 0xa8]
push edx
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, edx
mov edx, dword [eax]
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.DuiLib_u.dll_public:_static_void___cdecl_DuiLib::CRenderEngine::DrawImage_struct_HDC_____struct_HBITMAP_____struct_tagRECT_const___struct_tagRECT_const___struct_tagRECT_const___struct_tagRECT_const___bool__unsigned_char__bool__bool__bool_]
add esp, 0x2c
jmp 0x40dde6
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
call fcn.00549e40
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push eax
push ecx
push esi
lea eax, [esp + 0x44]
call fcn.0040deb0
cmp byte [esi + 0x11], 0
je 0x40de02
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub eax, dword [esi + 0xa8]
sub ecx, dword [esi + 0xac]
jmp 0x40de1a
movsx edx, byte [esi + 0x15]
movsx eax, byte [esi + 0x16]
movsx ecx, byte [esi + 0x17]
sub eax, edx
add eax, dword [esp + 0x38]
sub ecx, edx
add ecx, dword [esp + 0x3c]
xor edx, edx
push edx
push ebx
push edi
push ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov edx, dword [esi + 8]
push eax
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], 0x1ff0000
call dword [sym.imp.USER32.dll_MoveWindow]
mov edi, dword [esp + 0x10]
push 2
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 8]
push edi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov edx, dword [esp + 0x20]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x94]
pop edi
pop ebx
xor ecx, esp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret 4