Function at 0x590700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
push esi
push edi
lea edi, [ebp - 0x2c0]
mov ecx, 0xb0
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005878f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x59073e
jmp 0x590aac
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00587730
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xd0
push ecx
call fcn.0059baa0
test eax, eax
jne 0x59078b
jmp 0x590aac
mov dword [ebp - 0x50], 0
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov esi, esp
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xd0
push ecx
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
cmp esi, esp
call fcn.00605df0
test eax, eax
jne 0x5907c7
jmp 0x590aac
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x124], 0
je 0x5908ff
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0
call fcn.005a4ab0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov esi, esp
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 0x64], eax
mov esi, esp
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xe4]
push ecx
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.005a4b90
mov ecx, dword [ebp - 0x50]
neg ecx
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x4c]
neg edx
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x8c]
add ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x84], ecx
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x124]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.005a5c30
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.005a8780
mov esi, esp
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, esp
call fcn.00605df0
mov esi, esp
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, esp
call fcn.00605df0
jmp 0x590996
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x120], 0
jne 0x590996
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0xa0], edx
mov esi, esp
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp esi, esp
call fcn.00605df0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], eax
jne 0x59097a
push 1
lea edx, [ebp - 0xa8]
push edx
push 0xc28727
push 0xdba448
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a7fe0
jmp 0x590996
push 1
lea ecx, [ebp - 0xa8]
push ecx
push 0xdba54a
push 0xe6be7b
mov edx, dword [ebp + 0xc]
push edx
call fcn.005a7fe0
mov eax, dword [ebp - 0x2c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xb0], eax
mov esi, esp
push 0xffffffffffffffde
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetClassLongW]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x590a20
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x7c]
and eax, 0x200
je 0x590a20
push 3
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0xb0]
sub ecx, eax
push ecx
push 8
mov edx, dword [ebp + 0xc]
push edx
call fcn.005a8710
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x4c]
add ecx, 0xd
mov dword [ebp - 0x38], ecx
jmp 0x590a27
mov dword [ebp - 0x38], 8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x7c]
and eax, 0x400
je 0x590aac
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x38]
cmp ecx, 0x14
jle 0x590aac
xor edx, edx
mov word [ebp - 0x2b8], dx
push 0x1fe
push 0
lea eax, [ebp - 0x2b6]
push eax
call fcn.005ff630
add esp, 0xc
mov esi, esp
push 0x100
lea ecx, [ebp - 0x2b8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.00605df0
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
jle 0x590aac
push 0x24
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x2b8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a9a00
push edx
mov ecx, ebp
push eax
lea edx, [0x590adc]
call fcn.00605e20
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f0da0
add esp, 0x2c0
cmp ebp, esp
call fcn.00605df0
mov esp, ebp
pop ebp
ret