Function at 0x401505
Capabilities:
Get graphical window text

Disassembly:
jmp 0x41ff50
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetModuleState
push 2
push 2
push 1
push 0x20
push 0x20
lea ecx, [edi + 0x60]
call sub.MFC42.DLL_CImageList::Create
push 0x90
push 0xe
push 0x90
call sub.MFC42.DLL_AfxFindResourceHandle
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push eax
call esi
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
mov eax, dword [edi + 0x64]
push 0xffffffffffffffff
push eax
call ebx
push 0x92
push 0xe
push 0x92
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call esi
mov ecx, dword [edi + 0x64]
push eax
push 0xffffffffffffffff
push ecx
call ebx
push 2
push 2
push 1
push 0x10
lea ecx, [edi + 0x68]
push 0x10
call sub.MFC42.DLL_CImageList::Create
push 0x90
push 0xe
push 0x90
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call esi
mov edx, dword [edi + 0x6c]
push eax
push 0xffffffffffffffff
push edx
call ebx
push 0x92
push 0xe
push 0x92
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call esi
push eax
mov eax, dword [edi + 0x6c]
push 0xffffffffffffffff
push eax
call ebx
lea esi, [edi + 0xac]
test esi, esi
jne 0x420010
xor eax, eax
jmp 0x420013
mov eax, dword [esi + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test esi, esi
jne 0x420024
xor ecx, ecx
jmp 0x420027
mov ecx, dword [esi + 0x20]
or al, 1
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
test esi, esi
je 0x42003a
mov esi, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0xd
push 0xd
push 0x1036
push esi
call ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x4336ec
mov dword [esp + 0x18], 0x4336e0
xor esi, esi
mov ebx, 0x64
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov eax, dword [edx]
mov edx, dword [edi + 0xcc]
push 0x101b
push edx
mov dword [esp + 0x2c], 0x2f
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], ebx
call ebp
mov edx, dword [esp + 0x10]
add ebx, 0x21
inc esi
add edx, 4
cmp ebx, 0xa6
mov dword [esp + 0x10], edx
jl 0x42006b
lea ecx, [edi + 0xac]
call sub.MFC42.DLL_CListCtrl::GetHeaderCtrl
mov ebx, eax
lea eax, [edi + 0x68]
test eax, eax
je 0x4200cf
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebx + 0x20]
push 0
push 0x1208
push eax
call ebp
push eax
call sub.MFC42.DLL_CImageList::FromHandle
mov dword [esp + 0x3c], 0x24
xor esi, esi
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push esi
push 0x1203
push edx
call ebp
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], esi
or ah, 8
mov dword [esp + 0x50], eax
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x3c]
push eax
push esi
push 0x1204
push ecx
call ebp
push 0
push 4
push esi
mov ecx, ebx
call sub.MFC42.DLL_CWnd::ModifyStyle
inc esi
cmp esi, 2
jl 0x4200ed
push 0
lea ebp, [edi + 0xac]
push 4
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ModifyStyle
xor esi, esi
xor ebx, ebx
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x420159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x42015b
xor eax, eax
cmp esi, dword [eax + 0x1260]
jge 0x420194
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x420175
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x420177
xor eax, eax
mov eax, dword [ebx + eax + 0x60]
push 0
push 0
push 0
push 0
push eax
push esi
push 1
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::InsertItem
inc esi
add ebx, 0x24
jmp 0x420147
mov ecx, edi
call fcn.00401410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret