Function at 0x41590c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x415bab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov edi, eax
mov eax, 0xc8
call fcn.004025a8
mov esi, eax
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0xc8
push edi
push ebx
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.0040364c
mov eax, dword [ebp - 0xc]
mov edx, 0x415bc4
call fcn.00403800
jne 0x415b82
xor eax, eax
push 0x415bcc
push 0x415bd8
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x415b82
push 0x415be0
push 0x415bd8
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x415b82
push 0x415bec
push 0x415bd8
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
jne 0x415b82
push 0xc8
push esi
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.0040364c
mov eax, dword [ebp - 0x10]
mov edx, 0x415c00
call fcn.00403800
je 0x415b82
push 0
push 0x415c0c
push 0
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
jle 0x415ab2
push esi
push 0xc8
push 0xd
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.0040364c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00415ee0
test al, al
je 0x415a5f
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.0040364c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 0x415c20
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x415ab2
lea eax, [ebp - 8]
mov edx, 0x415c20
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x418384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, 0x415c30
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x415b82
push 0
push 0x415c38
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
jle 0x415b82
mov eax, dword [0x418438]
mov eax, dword [eax]
mov edx, 0x415c48
call fcn.00403800
jne 0x415b22
push esi
push 0xc8
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040364c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 0x415c30
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x415b82
push 0
push 0
push 0xcc
push ebx
call sub.user32.dll_PostMessageA
push esi
push 0xc8
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push ebx
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.0040364c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 0x415c30
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41839c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, edi
call fcn.004025c0
mov eax, esi
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415bb2
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.004034b8
ret