Function at 0x406730
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42f608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebp
mov ebp, dword [esp + 0x50]
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x18]
push edi
xor edi, edi
mov dword [esp + 0x28], eax
push ecx
push ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x406963
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x4357c0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push edx
mov dword [esp + 0x54], edi
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x38], ecx
push edx
mov dword [esp + 0x40], ecx
push 0x18
mov dword [esp + 0x48], ecx
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, edi
jne 0x4067eb
mov dword [esp + 0xc], 0x434f40
mov dword [esp + 0x50], 1
jmp 0x40695a
lea ecx, [esi + 0x14]
cmp ecx, edi
je 0x4067f7
cmp dword [ecx + 4], edi
jne 0x406810
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0xa
push edi
push 0xff
push edx
push eax
call sub.MFC42.DLL_CImageList::Create
jmp 0x40683c
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00405b00
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
cmp edx, eax
jne 0x40694a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jne 0x40694a
mov edx, dword [esp + 0x5c]
cmp edx, edi
je 0x406866
mov eax, dword [esi + 0x24]
mov ecx, eax
dec eax
test ecx, ecx
je 0x406866
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + eax*4]
cmp dword [ecx], edx
je 0x4068f4
mov edi, eax
dec eax
sub ecx, 4
test edi, edi
jne 0x406854
lea edi, [esi + 0x34]
push ebx
push 0xffffffffffffffff
mov ebx, dword [edi + 8]
lea ecx, [ebx + 1]
push ecx
mov ecx, edi
call fcn.00411df0
mov edx, dword [edi + 4]
lea edi, [esi + 0x1c]
push 0xffffffffffffffff
mov ecx, edi
mov dword [edx + ebx*4], 0xffffffff
mov ebx, dword [edi + 8]
lea eax, [ebx + 1]
push eax
call fcn.00411df0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x60]
push ebp
push 0xffffffffffffffff
mov dword [ecx + ebx*4], edx
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edx, dword [esi]
push 0xffffffffffffffff
push ebp
mov ecx, esi
mov edi, eax
call dword [edx + 0x30]
mov eax, dword [esi]
push 0xffffffffffffffff
push ebp
mov ecx, esi
call dword [eax + 0x34]
mov dword [esp + 0x10], 0x434f40
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 8
mov edx, dword [esi + 0x18]
lea edi, [eax + eax*2]
push ebp
push edi
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [esi]
lea ecx, [edi + 1]
push ecx
push ebp
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
lea eax, [edi + 2]
push eax
push ebp
mov ecx, esi
call dword [edx + 0x34]
mov dword [esp + 0xc], 0x434f40
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 8
mov dword [esp + 0xc], 0x434f40
mov dword [esp + 0x50], 2
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x48]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov dword fs:[0], ecx
add esp, 0x48
ret 8