Function at 0x415a40
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x455050
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 0x415a80
mov eax, 3
jmp 0x415a96
cmp dword [ebx + 0x64], edi
je 0x415a8c
mov eax, 2
jmp 0x415a96
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.00415cc0
mov edx, dword [ebx + 0x40]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [str.lF_F]
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 0x415af2
cmp dword [eax - 4], esi
jge 0x415b5c
mov edi, dword [eax - 8]
cmp edi, esi
mov dword [esp + 0x14], edi
jle 0x415aff
mov esi, edi
push esi
lea ecx, [esp + 0x14]
call fcn.00404130
test eax, eax
je 0x415b5a
lea ecx, [edi + edi + 2]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x415b32
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 [0x46005c]
cmp ebp, eax
je 0x415b56
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415b56
push ebp
call fcn.00439890
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]
lea ecx, [esp + 0x10]
call fcn.00407850
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
pop ebp
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
jne 0x415ba4
mov ecx, dword [ebx + 0xc0]
cmp dword [ecx - 8], edi
je 0x415c1e
cmp dword [ebx + 0xc4], edi
jne 0x415bd5
mov eax, dword [ebx + 0x24]
push 0xff
push 1
push edi
push edi
push 1
lea edx, [esp + 0x2c]
push 0x424242
push edx
mov edx, dword [esp + 0x54]
add ebx, 0x20
push eax
lea ecx, [esp + 0x2c]
push ebx
push ecx
push edx
jmp 0x415c16
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, 3
push 0xff
push 1
sub esi, eax
sub edx, eax
mov eax, dword [ebx + 0x28]
push edi
push edi
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x24]
push 1
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x54]
lea eax, [ebx + 0x20]
push edx
add ebx, 0xc0
push eax
push ebx
mov dword [esp + 0x40], esi
push ecx
call fcn.00433be0
add esp, 0x2c
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46005c]
pop edi
pop esi
lea edx, [eax - 0xc]
pop ebx
cmp edx, ecx
je 0x415c50
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415c50
mov eax, dword [esp]
add eax, 0xfffffff4
push eax
call fcn.00439890
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4