Function at 0x41fa90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee020
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x53451c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
call fcn.00408b60
mov ecx, eax
test ecx, ecx
je 0x41fcf6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x74], esi
push dword [ebx + 4]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x41fd00
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41fb15
push edi
lea ecx, [ebp - 0x74]
call fcn.00407760
mov esi, dword [ebp - 0x74]
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x41fb31
push dword [esi - 8]
push esi
call fcn.00494b9b
add esp, 8
test eax, eax
js 0x41fd00
cmp eax, dword [esi - 8]
jg 0x41fd00
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00408b60
mov ecx, eax
test ecx, ecx
je 0x41fd0a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c], eax
lea eax, [ebx + 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040ead0
cmp dword [esi - 0xc], 0
mov edi, dword [ebp - 0x6c]
jne 0x41fc93
cmp dword [edi - 0xc], 0
je 0x41fc93
mov eax, dword [ebx + 4]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 0x6c]
cmp eax, ecx
jne 0x41fba9
cmp dword [ebx + 0x28], 0
je 0x41fc93
lea eax, [ebp - 0x60]
mov dword [ebp - 0x68], 0
push eax
push ecx
mov dword [ebp - 0x64], ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x68], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 4]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0x31
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x41fbf0
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 4]
mov dword [ebp - 0x70], eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebx + 4]
push dword [ebp - 0x68]
push 0x133
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41fc38
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_FillRect]
push 0xd7d7d7
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 4
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x68]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x70]
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetBkMode]
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.USER32.dll_EndPaint]
mov dword [ebp - 0x68], 0
jmp 0x41fc9c
mov eax, dword [ebp - 0x70]
mov dword [eax], 0
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fcba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x41fcd6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ba88
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004062a0
push 0x80070057
call fcn.004062a0
push 0x80004005
call fcn.004062a0
int3