Function at 0x40ec50
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x427178]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x30], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], 0
test eax, eax
je 0x40ec95
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov dword [ebx + 0x28], 0
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x1c], eax
lea ecx, [eax - 1]
cmp ecx, 0x1f
ja case.0x40ecbc.2
movzx ecx, byte [ecx + 0x40ef4c]
jmp dword [ecx*4 + 0x40ef30]
mov ecx, 0x18
jmp 0x40ece8
mov ecx, 0x10
jmp 0x40ece8
mov ecx, 8
jmp 0x40ece8
mov ecx, 4
jmp 0x40ece8
xor ecx, ecx
jmp 0x40ece8
mov ecx, 0x20
push 0
push 4
or ecx, 1
push ecx
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0xcc
push dword [ebx + 0x24]
mov dword [ebx + 0x28], eax
call edi
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0xcc
push dword [ebx + 0x24]
call edi
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push str.Button
push dword [esp + 0x1c]
call dword [sym.imp.UxTheme.dll_OpenThemeData]
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x48], 0x10
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_CreateBitmap]
mov edi, eax
push 0
push dword [esp + 0x20]
push 1
push 0x10
push 0x10
call esi
push eax
push edi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push dword [esp + 0x20]
mov dword [esp + 0x2c], eax
push 1
push 0x10
push 0x10
call esi
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push eax
push edi
mov dword [esp + 0x34], 1
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x10]
push 0
test eax, eax
je 0x40edfe
lea ecx, [esp + 0x40]
push ecx
push 1
push 3
push edi
push eax
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x40ee0c
push 4
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFrameControl]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ee59
push 0
lea ecx, [esp + 0x40]
push ecx
push 5
push 3
push edi
push eax
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x40ee6c
push 0x400
push 4
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFrameControl]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [ebx + 0x28]
mov ebx, dword [esp + 0x1c]
push 0
push 0x1109
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
mov byte [0x42935a], 0
mov byte [0x429358], 1
mov byte [0x429359], 2
mov byte [0x42935b], 3
test eax, eax
je 0x40eecc
push eax
call dword [sym.imp.UxTheme.dll_CloseThemeData]
test edi, edi
je 0x40eeed
push dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x20]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x40eefe
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40ef11
push eax
call esi
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40ef1c
push eax
call esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 4