Function at 0x417206
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f384
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x47d88c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x47d88c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0042b7ac
mov esi, eax
mov eax, edi
call fcn.004145da
test eax, eax
je 0x417291
lea ecx, [esp + 0x3c]
push ecx
push 0x3c
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [edi + 0x54]
call fcn.0042bad4
cmp dword [ebx + 8], 5
jne 0x417284
mov byte [esp + 0x51], 1
lea eax, [esp + 0x3c]
push eax
lea ecx, [edi + 0x54]
call fcn.00414530
mov eax, dword [esi]
lea ecx, [edi + 0x54]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov dword [esp + 0x38], eax
call fcn.00421f68
push eax
lea ecx, [esp + 0x18]
call fcn.00401abe
and dword [esp + 0x88], 0
lea eax, [ebx + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [ebx + 8]
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
cmp ebx, 5
je 0x417381
dec ebx
dec ebx
je 0x417322
dec ebx
je 0x417304
dec ebx
jne 0x417342
push 0x3f3
lea ecx, [esp + 0x18]
call fcn.00401a3a
mov eax, dword [0x48217c]
mov dword [esp + 0x1c], eax
mov eax, dword [0x482188]
jmp 0x41733e
push 0x3f4
lea ecx, [esp + 0x18]
call fcn.00401a3a
mov eax, dword [0x482178]
mov dword [esp + 0x1c], eax
mov eax, dword [0x482184]
jmp 0x41733e
push 0x3f2
lea ecx, [esp + 0x18]
call fcn.00401a3a
mov eax, dword [0x482174]
mov dword [esp + 0x1c], eax
mov eax, dword [0x482180]
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.0042bca0
mov byte [esp + 0x88], 1
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
push dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x4173f5
push 0x3fa
lea ecx, [esp + 0x18]
call fcn.00401a3a
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
push ebx
lea ecx, [esp + 0x24]
call fcn.0042bca0
mov byte [esp + 0x88], 2
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 4]
push 3
push 0
push 0
push 0x10
push 0x10
push dword [edi + 0x5c]
inc ecx
push 1
push ecx
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esi]
push 0xff0000
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x2c]
add dword [esp + 0x28], 0x12
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
push ebx
mov ecx, esi
call dword [edx + 0x68]
mov byte [esp + 0x88], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CBrush.0
call fcn.00402d1b
push dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
push dword [esi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [ebx - 0x10]
call fcn.00401b3a
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0044111a
mov esp, ebp
pop ebp
ret 4