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

Disassembly:
push 0xffffffffffffffff
push 0x417968
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 0x407660
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x41a390
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 0x4074eb
mov dword [esp + 0xc], 0x41a37c
mov dword [esp + 0x50], 1
jmp 0x407657
lea ecx, [esi + 0x14]
cmp ecx, edi
je 0x4074f7
cmp dword [ecx + 4], edi
jne 0x407510
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 0x407539
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004065e0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x34]
cmp eax, edx
jne 0x407647
cmp ecx, dword [esp + 0x38]
jne 0x407647
mov edx, dword [esp + 0x5c]
cmp edx, edi
je 0x407563
mov eax, dword [esi + 0x24]
mov ecx, eax
dec eax
test ecx, ecx
je 0x407563
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + eax*4]
cmp dword [ecx], edx
je 0x4075f1
mov edi, eax
dec eax
sub ecx, 4
test edi, edi
jne 0x407551
lea edi, [esi + 0x34]
push ebx
push 0xffffffffffffffff
mov ebx, dword [edi + 8]
lea ecx, [ebx + 1]
push ecx
mov ecx, edi
call fcn.00413780
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.00413780
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], 0x41a37c
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], 0x41a37c
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], 0x41a37c
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