Function at 0x40dc50
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 + 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], 0
test eax, eax
je 0x40dc95
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov dword [ebx + 0x2c], 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.0x40dcbc.2
movzx ecx, byte [ecx + 0x40df50]
jmp dword [ecx*4 + 0x40df34]
mov ecx, 0x18
jmp 0x40dce8
mov ecx, 0x10
jmp 0x40dce8
mov ecx, 8
jmp 0x40dce8
mov ecx, 4
jmp 0x40dce8
xor ecx, ecx
jmp 0x40dce8
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 + 0x2c], eax
call edi
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebx + 0x2c]
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 + 0x2c]
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]
test eax, eax
je 0x40ddfe
push 0
lea ecx, [esp + 0x40]
push ecx
push 1
push 2
push edi
push eax
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x40de0e
push 4
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 + 0x2c]
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 0x40de5b
push 0
lea ecx, [esp + 0x40]
push ecx
push 5
push 2
push edi
push eax
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x40de6e
push 0x404
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 + 0x2c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [ebx + 0x2c]
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 [0x429355], 0
mov byte [0x429357], 1
mov byte [0x429354], 2
mov byte [0x429356], 3
test eax, eax
je 0x40dece
push eax
call dword [sym.imp.UxTheme.dll_CloseThemeData]
test edi, edi
je 0x40deef
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 0x40df00
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40df13
push eax
call esi
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40df1e
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