Function at 0x41da30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push edi
mov edi, ecx
call esi
mov ebx, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x41da5c
call esi
cmp eax, ebx
je 0x41da5c
xor ebx, ebx
jmp 0x41da61
mov ebx, 1
push edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp byte [edi + 0x10], 0
mov eax, 2
je 0x41da7f
add dword [ebp - 0x10], eax
sub dword [ebp - 8], eax
jmp 0x41da85
add dword [ebp - 0x14], eax
sub dword [ebp - 0xc], eax
push 0xf
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
test ebx, ebx
je 0x41dab7
push 2
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
mov eax, dword [esi]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x41dafb
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi]
push 0x400a
push 6
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
push 0xffffffffffffffff
push 1
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi]
push 0x4005
push 6
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f875
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 4
push ecx
push eax
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x41dc10
cmp byte [edi + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
je 0x41db74
mov ecx, dword [0x5f79ec]
add eax, 5
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x1c]
sub eax, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0xc], ecx
jmp 0x41db8b
mov edx, dword [edi + 0x28]
mov eax, dword [0x5f79f0]
add ecx, 0xfffffffd
add edx, 2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp + 0xc], eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffff7
add ebx, 0x12
push ebx
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
cmp edx, dword [ebp - 0x1c]
jge 0x41dc03
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jge 0x41dc03
mov edx, dword [ebp - 4]
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dbe0
movzx ecx, byte [edi + 0x10]
push ecx
sub eax, ebx
lea ecx, [ebp - 0x24]
push ecx
sar eax, 1
push eax
push edx
push esi
call fcn.004e3dc0
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x30]
mov ebx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push 0
lea ecx, [edi + 0x30]
push esi
push ebx
call eax
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 0x14]
push 0
lea ecx, [edi + 0x18]
push esi
push ebx
call eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.005559df
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8