Function at 0x40d350
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44d3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x40]
xor edi, edi
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
cmp eax, edi
jne 0x40d390
mov eax, 3
jmp 0x40d3a6
cmp dword [ebx + 0x64], edi
je 0x40d39c
mov eax, 2
jmp 0x40d3a6
mov ecx, dword [ebx + 0x68]
xor eax, eax
cmp ecx, edi
setne al
mov ecx, dword [ebx + 0xa8]
push ebp
push eax
lea edx, [ebx + 0x70]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push esi
mov ecx, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.0040d5b0
mov edx, dword [ebx + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x458050]
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp ecx, 1
mov byte [esp + 0x34], 1
mov esi, 0x80
jg 0x40d402
cmp dword [eax - 4], esi
jge 0x40d46c
mov edi, dword [eax - 8]
cmp edi, esi
mov dword [esp + 0x14], edi
jle 0x40d40f
mov esi, edi
push esi
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x40d46a
lea ecx, [edi + edi + 2]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x40d442
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], edi
mov eax, dword [0x458054]
cmp ebp, eax
je 0x40d466
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d466
push ebp
call fcn.0042d78e
add esp, 4
mov eax, dword [esp + 0x10]
xor edi, edi
mov ecx, dword [ebx + 0x40]
push 0x80
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esp + 0x10]
pop ebp
mov eax, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp eax, 1
jle 0x40d4c7
lea ecx, [esp + 0xc]
call fcn.00403ed0
mov eax, dword [esi + 4]
lea ecx, [esp + 0xc]
push eax
call fcn.00403db0
test eax, eax
je 0x40d4c7
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0xc]
add esi, 0xc
lea edx, [ecx + ecx + 2]
mov ecx, dword [eax - 4]
push edx
push esi
lea edx, [ecx + ecx + 2]
push edx
push eax
call fcn.00402e50
add esp, 0x10
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0xc]
mov word [edx + eax*2], di
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], edi
je 0x40d51d
mov ecx, dword [ebx + 0x24]
push 0xff
push 1
push edi
push edi
push 1
lea eax, [esp + 0x2c]
push 0x424242
push eax
mov eax, dword [esp + 0x54]
add ebx, 0x20
push ecx
lea edx, [esp + 0x2c]
push ebx
push edx
push eax
call fcn.00427db0
mov eax, dword [esp + 0x38]
add esp, 0x2c
mov edx, dword [0x458054]
lea ecx, [eax - 0xc]
pop edi
pop esi
cmp ecx, edx
pop ebx
je 0x40d54b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d54b
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4