Function at 0x41d4e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b598
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x41d6ce
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x41d6ce
cmp dword [edi + 0x18], 0
je 0x41d6ce
cmp dword [edi + 0x14], 0
je 0x41d6ce
lea ecx, [ebp - 0x64]
call fcn.0055b856
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
push dword [edi + 0x18]
call fcn.0055ba6d
push 0x18
call fcn.0055070f
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
add esp, 4
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
test eax, eax
je 0x41d5ca
lea eax, [ebp - 0x4c]
push eax
push dword [edi + 0x18]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xb
call esi
mov ecx, dword [ebp - 0x50]
cdq
sub eax, edx
sar eax, 1
push 0xc
mov dword [ecx], eax
call esi
mov esi, dword [ebp - 0x50]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esi]
mov dword [esi + 4], eax
add ecx, 4
mov eax, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x1c]
add eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x28]
sub eax, dword [ebp - 0x4c]
add eax, dword [edi + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x14], eax
push dword [ebp - 0x5c]
lea esi, [edi + 0x1c]
call dword [sym.imp.GDI32.dll_GetTextColor]
push dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.GDI32.dll_GetBkColor]
test byte [edi + 0x10], 1
mov dword [ebp - 0x70], eax
je 0x41d612
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xe
call esi
push eax
lea ecx, [ebp - 0x64]
call fcn.0055c04e
push 0xd
call esi
push eax
lea ecx, [ebp - 0x64]
call fcn.0055bf6d
push 0xd
call esi
lea esi, [edi + 0x1c]
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.0055c293
mov edx, dword [ebp - 0x54]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x54], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d627
sub ecx, dword [ebp - 0x54]
push 0
sar ecx, 1
push ecx
push edx
push esi
mov esi, dword [ebp - 0x50]
push 6
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [edi + 0x18]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [ebp - 0x68]
mov ecx, dword [edi + 8]
push 3
push 0
mov eax, dword [eax + 0x80]
push 0
push dword [esi + 4]
mov eax, dword [eax + ecx*4]
push dword [esi]
movzx eax, word [eax + 4]
push eax
push dword [0x61850c]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push dword [esi + 0xc]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_DrawIconEx]
test byte [edi + 0x10], 0x10
je 0x41d69d
lea eax, [edi + 0x1c]
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x64]
call fcn.0055c04e
push dword [ebp - 0x70]
lea ecx, [ebp - 0x64]
call fcn.0055bf6d
lea ecx, [ebp - 0x64]
call fcn.0055bb77
push 0x18
push esi
call fcn.0056deb6
add esp, 8
lea ecx, [ebp - 0x64]
call fcn.0055b90e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4