Function at 0x4225f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4320eb
push eax
mov al, byte [0x4478b0]
mov dword fs:[0], esp
sub esp, 0x438
test al, 1
jne 0x422636
mov dl, al
mov ecx, 0x4478a8
or dl, 1
mov byte [0x4478b0], dl
call fcn.00426676
push 0x422870
call fcn.00426d66
add esp, 4
mov eax, 0x4478a8
test eax, eax
je 0x422648
mov eax, dword [0x4478ac]
test eax, eax
jne 0x42266b
push 0xa
push 0x14
push 0x19
push 0x20
push 0x20
mov ecx, 0x4478a8
call sub.MFC42.DLL_CImageList::Create
mov ecx, dword [0x4478ac]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push ebx
mov ebx, dword [esp + 0x44c]
push ebp
mov ebp, dword [esp + 0x454]
test ebx, ebx
jne 0x4226b5
test ebp, ebp
jne 0x4226b5
mov ecx, 0x4478a8
call sub.MFC42.DLL_CImageList::DeleteImageList
mov dword [0x446c50], 2
mov eax, 1
mov ecx, dword [esp + 0x440]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x444
ret 8
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x422697
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0xc]
cmp ecx, eax
je 0x422697
cmp ecx, dword [0x4478cc]
je 0x422697
push esi
push edi
push str.psapi.dll
lea eax, [esp + 0x1c]
push 0x4478a0
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push str.GetModuleFileNameExA
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
je 0x42275b
mov ecx, dword [esp + 0x14]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [esp + 0x48]
push 0x400
mov edi, eax
push edx
push 0
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push 0x29
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, eax
mov al, byte [esp + 0x1c]
test al, al
je 0x42285f
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push 0xf1f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x454], 0
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str._s___s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
cmp esi, 0x28
jb 0x4227e3
mov ecx, dword [esp + 0x10]
push 0x446e70
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
dec eax
push eax
call sub.MFC42.DLL_CString::Insert
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea edx, [esp + 0x48]
push 0
push edx
mov eax, dword [eax + 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov ecx, dword [0x4478ac]
mov esi, eax
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
mov eax, dword [0x446c50]
mov edx, dword [esp + 0x14]
push 0x4478a8
push edx
push eax
push 0
mov ecx, ebp
call fcn.0040e200
mov eax, dword [0x446c50]
push 0
mov edx, dword [esp + 0x18]
mov ecx, eax
push edx
inc eax
push ecx
mov ecx, ebp
mov dword [0x446c50], eax
call fcn.0040d500
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [esp + 0x10]
mov dword [esp + 0x450], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
jmp 0x42269c