Function at 0x4a68f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585b48
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5ca104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x88], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x38]
push dword [edi]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4a6964
push eax
push ecx
mov eax, esp
push 0
push SysReAllocStringLen
push 0
push ecx
mov dword [eax], 0
mov ecx, ebx
mov eax, esp
mov dword [eax], 0
push dword [ebp - 0x6c]
call fcn.004a4830
cmp dword [ebp + 0xc], 0
je 0x4a6abc
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4a6ab3
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4a6ab3
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4a6abc
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x40], xmm0
call esi
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call esi
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
cdq
sub eax, edx
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
sar eax, 1
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x28]
push 2
push dword [ebp - 0x6c]
lea eax, [eax + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar ecx, 1
mov ebx, eax
mov dword [ebp - 0x78], ecx
lea eax, [edi + esi]
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
add esi, ecx
mov ecx, dword [ebp - 0x78]
sub ecx, eax
mov dword [ebp - 0x20], esi
add edi, ecx
mov ecx, dword [ebp - 0x8c]
mov eax, ecx
mov dword [ebp - 0x18], edi
sub eax, ebx
sub ecx, ebx
add dword [ebp - 0x1c], eax
add dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_MonitorFromWindow]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
cmp esi, ecx
jge 0x4a6a5d
sub ecx, esi
add esi, ecx
add eax, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
cmp edx, edi
jge 0x4a6a76
sub edi, edx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x38]
cmp eax, edi
jle 0x4a6a89
sub edi, eax
add esi, edi
add eax, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x34]
cmp ecx, edi
jle 0x4a6a9c
sub edi, ecx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x7c]
sub ecx, edx
push 1
push ecx
sub eax, esi
push eax
push edx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4a6abc
push 0
mov ecx, edi
call fcn.004ab550
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
mov dword [ebp - 0x78], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x5d0a40]
cmp eax, dword [esi + 4]
jle 0x4a6b26
push 0x5d0a40
call fcn.0051fd81
add esp, 4
cmp dword [0x5d0a40], 0xffffffff
jne 0x4a6b26
mov dword [ebp - 4], 0
call fcn.004a9a70
push 0x58dd30
mov dword [0x5d0a44], eax
call fcn.0051fbd6
push 0x5d0a40
mov dword [ebp - 4], 0xffffffff
call fcn.0051fd42
add esp, 8
mov eax, dword [0x5d0a4c]
cmp eax, dword [esi + 4]
jle 0x4a6b73
push 0x5d0a4c
call fcn.0051fd81
add esp, 4
cmp dword [0x5d0a4c], 0xffffffff
jne 0x4a6b73
mov dword [ebp - 4], 1
call fcn.004a8b50
push 0x58dcf0
call fcn.0051fbd6
push 0x5d0a4c
mov dword [ebp - 4], 0xffffffff
call fcn.0051fd42
add esp, 8
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
call fcn.004a97c0
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 2
cmp dword [0x5d0a60], 0
je 0x4a6bdb
push ecx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004a8d70
mov ecx, eax
call fcn.004a8a10
mov esi, dword [eax]
test esi, esi
je 0x4a6bb9
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x78]
push eax
call fcn.004a82e0
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x78]
test eax, eax
je 0x4a6cd0
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004a9f60
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ecx + 0x14], esi
call fcn.004a7b40
mov eax, dword [eax]
cmp eax, dword [0x5d0a44]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
je 0x4a6c3f
call fcn.004aa000
mov eax, dword [ebp - 0x80]
inc dword [eax + 0x14]
jmp 0x4a6c4e
call fcn.004aa000
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x14], 1
mov edx, dword [ebp - 0x74]
mov esi, dword [edx]
cmp esi, edx
je 0x4a6cd3
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
test byte [esi + 0x14], 8
je 0x4a6c76
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call edi
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0xd], 0
jne 0x4a6cc7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a6cac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a6cc7
nop word [eax + eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a6ca0
jmp 0x4a6cc7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a6cc5
cmp esi, dword [eax + 8]
jne 0x4a6cc5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a6cb5
mov esi, eax
mov edx, dword [ebp - 0x74]
cmp esi, edx
jne 0x4a6c61
jmp 0x4a6cd3
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x88]
cmp byte [eax + 0xdc], 0
jne 0x4a6e9e
push 0
push 0
push 0
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4a6e9b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
call fcn.00406e20
test eax, eax
je 0x4a6f47
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x4a6d2c
lock inc dword [eax + 0x14]
lea esi, [eax + 8]
jmp 0x4a6d32
mov ecx, eax
call edx
mov esi, eax
add esi, 0x10
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4a6d60
push 0x400
lea ecx, [ebp - 0x78]
call fcn.00405960
mov esi, dword [ebp - 0x78]
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.0054094f
add esp, 8
test eax, eax
js 0x4a6f3d
cmp eax, dword [esi - 8]
jg 0x4a6f3d
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebp - 0x74]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4a6dce
cmp dword [eax + 0x10], edi
jae 0x4a6dab
mov eax, dword [eax + 8]
jmp 0x4a6daf
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4a6da1
cmp ecx, edx
je 0x4a6dce
cmp edi, dword [ecx + 0x10]
jb 0x4a6dce
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0xa8], ebx
jne 0x4a6e05
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
je 0x4a6ee7
cmp eax, 2
je 0x4a6ee7
cmp eax, 0x112
jne 0x4a6e05
cmp dword [ebp - 0xa0], 0xf060
je 0x4a6ee7
mov edi, dword [ebp - 0x88]
cmp byte [edi + 0xdc], 0
jne 0x4a6ef4
mov eax, dword [edi]
mov eax, dword [eax + 0x60]
cmp eax, method.CMainFrame.virtual_96
je 0x4a6e33
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, edi
call eax
test eax, eax
jne 0x4a6e4d
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a6e8e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4a6e8c
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4a6e8c
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4a6e8e
call edx
cmp byte [edi + 0xdc], 0
je 0x4a6ce6
mov edx, dword [ebp - 0x74]
mov ecx, dword [0x5d0a60]
mov esi, 0
mov eax, dword [0x5d0a5c]
sub ecx, 1
mov dword [0x5d0a60], ecx
cmove eax, esi
mov dword [0x5d0a5c], eax
test ecx, ecx
je 0x4a6f78
push ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004a8d70
mov ecx, eax
call fcn.004a8a10
mov esi, dword [eax]
test esi, esi
jne 0x4a6f51
jmp 0x4a6f53
mov eax, dword [ebp - 0x88]
mov byte [eax + 0xdc], 1
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a6e9b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4a6f36
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4a6f36
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4a6e9b
call edx
jmp 0x4a6e9b
push 0x80070057
call fcn.004071e0
push 0x80004005
call fcn.004071e0
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
push 1
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x74]
mov esi, dword [edx]
mov ebx, dword [0x5d0a44]
cmp esi, edx
je 0x4a7021
nop dword [eax + eax]
mov eax, dword [ebx + 4]
mov ecx, ebx
cmp byte [eax + 0xd], 0
jne 0x4a6fd9
mov edi, dword [esi + 0x10]
nop
cmp dword [eax + 0x10], edi
jae 0x4a6faa
mov eax, dword [eax + 8]
jmp 0x4a6fae
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4a6fa0
cmp ecx, ebx
je 0x4a6fd9
cmp edi, dword [ecx + 0x10]
jb 0x4a6fd9
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004aa000
mov eax, dword [ebp - 0x80]
dec dword [eax + 0x14]
mov ebx, dword [0x5d0a44]
mov edx, dword [ebp - 0x74]
cmp byte [esi + 0xd], 0
jne 0x4a7019
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a6ffe
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a7019
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a6ff2
jmp 0x4a7019
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a7017
cmp esi, dword [eax + 8]
jne 0x4a7017
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a7007
mov esi, eax
cmp esi, edx
jne 0x4a6f90
mov esi, dword [ebx]
cmp esi, ebx
je 0x4a711a
nop dword [eax + eax]
cmp dword [esi + 0x14], 0
jg 0x4a70cd
mov ecx, dword [edx + 4]
mov eax, edx
cmp byte [ecx + 0xd], 0
jne 0x4a7065
mov edi, dword [esi + 0x10]
cmp dword [ecx + 0x10], edi
jae 0x4a7052
mov ecx, dword [ecx + 8]
jmp 0x4a7056
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x4a7048
cmp eax, edx
je 0x4a7065
cmp edi, dword [eax + 0x10]
jae 0x4a7067
mov eax, edx
cmp eax, edx
je 0x4a7076
push 1
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0xd], 0
mov eax, esi
jne 0x4a70b8
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], 0
jne 0x4a709d
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4a70b8
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
je 0x4a7091
jmp 0x4a70b8
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x4a70b6
cmp esi, dword [ecx + 8]
jne 0x4a70b6
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x4a70a6
mov esi, ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004a7ba0
mov ebx, dword [0x5d0a44]
mov edx, dword [ebp - 0x74]
jmp 0x4a7112
cmp byte [esi + 0xd], 0
jne 0x4a7112
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a70f2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a7112
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a70e6
jmp 0x4a7112
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a7110
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x4a7110
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a7100
mov esi, eax
cmp esi, ebx
jne 0x4a7030
mov ebx, dword [ebp - 0x88]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x4a7173
push dword [eax + 0x38]
call esi
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x4a7173
mov dword [ebx + 0xe0], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CLayerdWindow.1.0
jne 0x4a7170
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4a7173
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x4a7173
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x4a7173
push eax
call edx
cmp dword [ebp - 0xa4], 0x12
jne 0x4a7186
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4a71a9
cmp byte [ebx + 0xdd], 0
je 0x4a71a9
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a71bb
push dword [ebx + 0x38]
call esi
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x7c]
mov esi, dword [ebx + 0xd8]
push ecx
push dword [ecx]
lea ecx, [ebp - 0x74]
push eax
call fcn.004a8970
push dword [ebp - 0x74]
call fcn.0051f63e
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051fefc
mov esp, ebp
pop ebp
ret 0xc