Function at 0x41aea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esp + 0x4c]
push edi
lea ecx, [esi + 0x24]
mov edi, dword [esp + 0x4c]
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x30], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x41aefb
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0x320
push eax
lea edx, [esp + 0x2c]
push edi
push edx
call dword [sym.imp.USER32.dll_PtInRect]
mov ebx, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], ebx
or ebp, 0xffffffff
call sub.MFC42u.DLL_CDC::CDC
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x44], 0
call sub.MFC42u.DLL_CDC::Attach
test ebx, ebx
je 0x41b006
push edi
mov ecx, esi
call fcn.0041ad50
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41af5e
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], eax
call fcn.0041ba06
mov eax, 1
jmp 0x41b0c6
mov ecx, dword [esi + 4]
mov ebx, dword [ecx + ebp*4]
cmp ebx, 0xff
je 0x41afeb
mov ecx, dword [esi + 0x24]
mov eax, edi
sub eax, ecx
cdq
and edx, 0xf
add eax, edx
mov edx, dword [esi + 0x28]
sar eax, 4
shl eax, 4
add eax, ecx
mov ecx, dword [esi + 0x20]
dec ecx
cmp ebp, ecx
jne 0x41afb4
cmp ebx, 4
jne 0x41afb4
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
neg ecx
sbb ecx, ecx
push 0
and ecx, edi
push edx
push eax
mov eax, dword [esi]
lea edx, [ebp + ebp*4 + 4]
push ecx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
jmp 0x41afeb
test bl, 1
jne 0x41afdd
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
neg ecx
sbb ecx, ecx
push 0
and ecx, edi
push edx
push eax
mov eax, dword [esi]
push ecx
lea ecx, [ebx + ebp*4]
lea edx, [ecx + ebp + 1]
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov ecx, dword [esi + 4]
lea eax, [ecx + ebp*4]
mov ecx, dword [ecx + ebp*4]
or ecx, 1
mov dword [eax], ecx
test ebp, ebp
jl 0x41b006
mov edx, dword [esi + 4]
cmp dword [edx + ebp*4], 0xff
jne 0x41b006
or ebp, 0xffffffff
mov dword [esp + 0x4c], 1
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
xor edi, edi
mov dword [esp + 0x10], edx
test eax, eax
jle 0x41b0a8
xor ebx, ebx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + edi*4]
lea ecx, [ecx + edi*4]
cmp eax, 0xffffffff
je 0x41b099
test al, 1
je 0x41b08e
cmp edi, ebp
je 0x41b08e
cmp eax, 0xff
je 0x41b06a
and eax, 2
push 0
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [edx + edi*4]
add eax, ebx
push eax
push ecx
jmp 0x41b088
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esi]
lea edx, [ebx + 4]
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov edx, dword [esp + 0x10]
add edx, 0x10
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x20]
inc edi
add ebx, 5
cmp edi, eax
jl 0x41b023
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CDC::Detach
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call fcn.0041ba06
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0xc