Function at 0x4b4050
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x552eb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
mov eax, dword [esi + 0x20]
push ebx
push 0xb
push eax
call ebp
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0x55c208
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x280], ebx
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
je 0x4b40e6
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.004b4f70
mov ecx, dword [esp + 0x28]
push 2
push ecx
call edi
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x4b40c2
mov eax, dword [esi + 0x20]
push ebx
push ebx
lea edx, [esp + 0x54]
push 0x1304
push eax
mov dword [esp + 0x4c], edx
call ebp
mov edi, eax
mov ecx, edi
dec edi
test ecx, ecx
je 0x4b4211
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x30]
push edx
push edi
push 0x1305
push eax
mov dword [esp + 0x40], 8
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x4b414a
mov edx, dword [esp + 0x18]
cmp dword [edx], ecx
je 0x4b4145
inc ebx
add edx, 4
cmp ebx, eax
jl 0x4b4137
jmp 0x4b414a
cmp ebx, 0xffffffff
jne 0x4b4176
mov ecx, dword [esi + 0x20]
push 0
push edi
push 0x1308
push ecx
call ebp
mov al, byte [esi + 0x58]
test al, al
je 0x4b4206
mov edx, dword [esi + 0x20]
push 0
push edi
push 0x132a
push edx
call ebp
jmp 0x4b4206
lea eax, [esp + 0x4c]
push 0x22b
push eax
push ecx
mov dword [esp + 0x3c], 1
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esi + 0x58]
test al, al
je 0x4b41b0
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.004b4380
mov edx, dword [esi + 0x50]
push eax
push edi
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x30]
push eax
push edi
push 0x1306
push ecx
call ebp
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, edx
jne 0x4b41db
mov eax, dword [esi + 0x20]
push 0
push edi
push 0x130c
push eax
call ebp
mov eax, dword [esp + 0x1c]
sub eax, ebx
dec eax
je 0x4b4202
lea ecx, [eax*4]
mov eax, dword [esp + 0x18]
push ecx
lea edx, [eax + ebx*4 + 4]
lea eax, [eax + ebx*4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec dword [esp + 0x1c]
mov ecx, edi
dec edi
test ecx, ecx
jne 0x4b4108
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0x1304
push eax
mov dword [esp + 0x20], edx
call ebp
mov ebx, eax
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x4b42c5
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], 0xb
lea ecx, [esp + 0x4c]
push 0x22b
mov eax, dword [edx + edi*4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esi + 0x58]
test al, al
je 0x4b427c
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff2
mov edx, dword [ecx + edi*4]
push edx
call dword [sym.imp.USER32.dll_GetClassLongA]
push eax
mov eax, dword [esi + 0x50]
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
mov dword [esp + 0x44], ebx
push eax
mov edx, dword [ecx + edi*4]
mov ecx, dword [esi + 0x20]
push ebx
push 0x1307
push ecx
mov dword [esp + 0x58], edx
call ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
cmp dword [eax + edi*4], edx
jne 0x4b42b7
mov ecx, dword [esi + 0x20]
push 0
push ebx
push 0x130c
push ecx
call ebp
mov eax, dword [esp + 0x10]
inc ebx
inc edi
cmp edi, eax
jl 0x4b4238
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x1304
push edx
call ebp
cmp eax, dword [esi + 0x54]
setge al
test al, al
jne 0x4b42ee
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4b42fc
jmp 0x4b4318
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4b4318
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandlePermanent
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd0]
mov eax, dword [esi + 0x20]
push 0x405
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [esi + 0x20]
push 0
push 1
push 0xb
push ecx
call ebp
mov dword [esp + 0x14], 0x55c208
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
test eax, eax
mov dword [esp + 0x274], 1
pop ebx
je 0x4b435f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
add esp, 0x274
ret