Function at 0x40ee20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c88ad
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4f80c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x88], esi
mov eax, dword [ebp + 8]
lea edi, [esi + 0x38]
push dword [edi]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x84], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ee96
push eax
push ecx
mov eax, esp
push 0
push SysReAllocString
push 0
push ecx
mov dword [eax], 0
mov ecx, esi
mov eax, esp
mov dword [eax], 0
push dword [ebp - 0x6c]
call fcn.0040c420
cmp dword [ebp + 0xc], 0
je 0x40eff1
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x40eeba
push eax
mov ecx, edi
call fcn.004100f0
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40eff1
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40eff1
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40eff1
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x6c]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
call esi
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call esi
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x3c]
cdq
sub eax, edx
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
sar eax, 1
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x20]
push 2
push dword [ebp - 0x6c]
lea eax, [eax + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x80], eax
lea eax, [edi + esi]
cdq
sub eax, edx
mov edx, dword [ebp - 0x7c]
sar eax, 1
mov ecx, edx
sub edx, eax
sub ecx, eax
add edi, edx
add esi, ecx
mov edx, dword [ebp - 0x70]
mov eax, edx
sub eax, dword [ebp - 0x80]
sub edx, dword [ebp - 0x80]
add dword [ebp - 0x1c], eax
add dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
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 - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
cmp esi, ecx
jge 0x40efa3
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 - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp edx, edi
jge 0x40efbc
sub edi, edx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x28]
cmp eax, edi
jle 0x40efcf
sub edi, eax
add esi, edi
add eax, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x24]
cmp ecx, edi
jle 0x40efe2
sub edi, ecx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
push 1
sub ecx, edx
sub eax, esi
push ecx
push eax
push edx
push esi
jmp 0x40f07a
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [edi]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [edi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x68], 0x28
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x68]
push ecx
push 2
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
sub eax, esi
sar edi, 1
add eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x1c]
cdq
push 1
sub eax, edx
sar eax, 1
sub ecx, dword [ebp - 0x20]
push esi
push ecx
push eax
push edi
mov esi, dword [ebp - 0x84]
push dword [esi]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword fs:[0x2c]
mov esi, dword [esi]
mov dword [ebp - 0x80], esi
mov edi, dword [eax]
mov eax, dword [0x50db00]
cmp eax, dword [edi + 4]
jg 0x40f670
mov eax, dword [0x50db0c]
cmp eax, dword [edi + 4]
jg 0x40f6ce
push 0x18
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.004989e3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 2
mov edx, dword [0x50db20]
test edx, edx
je 0x40f12d
mov eax, dword [0x50db1c]
dec eax
add edx, eax
mov eax, dword [0x50db18]
mov ecx, edx
dec eax
shr ecx, 2
and edx, 3
and ecx, eax
mov eax, dword [0x50db14]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x50db20]
mov edi, dword [0x50db1c]
mov ecx, dword [0x50db18]
lea eax, [edi + edx]
test al, 3
jne 0x40f162
lea eax, [edx + 4]
shr eax, 2
cmp ecx, eax
ja 0x40f162
push ecx
call fcn.0040fae0
mov edx, dword [0x50db20]
mov edi, dword [0x50db1c]
mov ecx, dword [0x50db18]
lea eax, [ecx*4 - 1]
and edi, eax
lea eax, [ecx - 1]
mov dword [0x50db1c], edi
add edi, edx
mov edx, edi
shr edx, 2
and eax, edx
mov dword [ebp - 0x7c], edx
shl eax, 2
mov dword [ebp - 0x70], eax
mov esi, eax
mov eax, dword [0x50db14]
cmp dword [esi + eax], 0
mov esi, dword [ebp - 0x80]
jne 0x40f1b5
push 0x10
call fcn.004989e3
mov ecx, dword [0x50db14]
add esp, 4
mov edx, dword [ebp - 0x70]
mov dword [edx + ecx], eax
mov ecx, dword [0x50db18]
mov edx, dword [ebp - 0x7c]
lea eax, [ecx - 1]
and edi, 3
mov ecx, dword [0x50db14]
and eax, edx
mov eax, dword [ecx + eax*4]
mov dword [eax + edi*4], esi
inc dword [0x50db20]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40f2ab
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040f870
mov dword [eax], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410060
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x50db04]
cmp byte [ecx + 0xd], 0
jne 0x40f217
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ecx + 0x10]
jae 0x40f219
mov ecx, edx
lea eax, [ebp - 0x6c]
push eax
cmp ecx, edx
je 0x40f22a
call fcn.0040f9e0
inc dword [eax]
jmp 0x40f235
call fcn.0040f9e0
mov dword [eax], 1
mov edi, dword [ebp - 0x78]
mov esi, dword [edi]
cmp esi, edi
je 0x40f2ae
nop
test byte [esi + 0x14], 8
je 0x40f25b
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40f28c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f288
cmp esi, dword [eax + 8]
jne 0x40f288
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f278
mov esi, eax
jmp 0x40f2a2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f2a2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f296
mov edi, dword [ebp - 0x78]
cmp esi, edi
jne 0x40f240
jmp 0x40f2ae
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x88]
xorps xmm0, xmm0
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x8c], 0
movq qword [ebp - 0x94], xmm0
cmp byte [eax + 0xe4], 0
jne 0x40f453
mov edi, eax
nop
push 0
push 0
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40f450
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x70], eax
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40f735
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x7c], 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 0x40f348
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.00404b70
mov esi, dword [ebp - 0x7c]
push 0x400
push esi
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.004a52f6
add esp, 8
test eax, eax
js 0x40f72b
cmp eax, dword [esi - 8]
jg 0x40f72b
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x78]
call fcn.00404090
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x78]
cmp byte [eax + 0xd], 0
jne 0x40f3a1
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [eax + 0x10]
jae 0x40f3a3
mov eax, edx
cmp eax, edx
je 0x40f3bb
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa4], eax
jne 0x40f3f0
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
je 0x40f3e9
cmp eax, 2
je 0x40f3e9
cmp eax, 0x112
jne 0x40f3f0
cmp dword [ebp - 0x9c], 0xf060
jne 0x40f3f0
mov byte [edi + 0xe4], 1
cmp byte [edi + 0xe4], 0
jne 0x40f470
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x58]
call eax
test eax, eax
jne 0x40f427
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa4]
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 0x40f443
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xe4], 0
je 0x40f2e0
mov edi, dword [ebp - 0x78]
mov ecx, dword [0x50db20]
sub ecx, 1
mov dword [0x50db20], ecx
jne 0x40f48e
mov dword [0x50db1c], 0
jmp 0x40f4bd
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f450
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40f450
mov edx, dword [0x50db1c]
mov eax, dword [0x50db18]
dec edx
add edx, ecx
dec eax
mov ecx, edx
and edx, 3
shr ecx, 2
and ecx, eax
mov eax, dword [0x50db14]
push 1
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [ebp - 0x78]
mov esi, dword [edi]
cmp esi, edi
je 0x40f544
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410060
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x10]
cmp byte [ecx + 0xd], 0
jne 0x40f4ee
mov eax, dword [edx]
cmp eax, dword [ecx + 0x10]
jb 0x40f4ee
mov eax, dword [0x50db04]
jmp 0x40f4f5
mov eax, dword [0x50db04]
mov ecx, eax
cmp ecx, eax
je 0x40f504
push edx
call fcn.0040f9e0
dec dword [eax]
mov edi, dword [ebp - 0x78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40f52a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f526
cmp esi, dword [eax + 8]
jne 0x40f526
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f516
mov esi, eax
jmp 0x40f540
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f540
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f534
cmp esi, edi
jne 0x40f4c7
mov eax, dword [0x50db04]
mov esi, dword [eax]
mov dword [ebp - 0x70], esi
cmp esi, eax
je 0x40f5c0
cmp dword [esi + 0x14], 0
jg 0x40f5ad
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x78]
call fcn.00404090
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xd], 0
jne 0x40f579
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
jae 0x40f57b
mov ecx, edi
cmp ecx, edi
je 0x40f58a
push 1
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x70]
call fcn.00403690
push esi
mov ecx, 0x50db04
call fcn.0040fd00
push 0x18
push eax
call fcn.00498a13
mov edi, dword [ebp - 0x78]
add esp, 8
jmp 0x40f5b5
lea ecx, [ebp - 0x70]
call fcn.00403690
mov esi, dword [ebp - 0x70]
cmp esi, dword [0x50db04]
jne 0x40f552
cmp dword [ebp - 0xa0], 0x12
jne 0x40f5d3
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40f5ed
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov esi, dword [ebp - 0x84]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f607
push dword [esi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0xe0]
mov eax, dword [ebp - 0x78]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x40f646
nop
push dword [esi + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, eax
call fcn.00410020
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.00498a13
add esp, 8
cmp byte [esi + 0xd], 0
je 0x40f620
mov eax, dword [ebp - 0x78]
push 0x18
push eax
call fcn.00498a13
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0xc
push 0x50db00
call fcn.00498cfc
add esp, 4
cmp dword [0x50db00], 0xffffffff
jne 0x40f0b1
push 0x18
mov dword [ebp - 4], 0
call fcn.004989e3
push 0x4d2220
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x50db04], eax
call fcn.00498c6b
push 0x50db00
mov dword [ebp - 4], 0xffffffff
call fcn.00498cab
add esp, 0xc
jmp 0x40f0b1
push 0x50db0c
call fcn.00498cfc
add esp, 4
cmp dword [0x50db0c], 0xffffffff
jne 0x40f0c2
push 8
mov dword [ebp - 4], 1
call fcn.004989e3
push 0x4d2210
mov dword [eax + 4], 0
mov dword [0x50db10], eax
mov dword [eax], 0x50db10
call fcn.00498c6b
push 0x50db0c
mov dword [ebp - 4], 0xffffffff
call fcn.00498cab
add esp, 0xc
jmp 0x40f0c2
push 0x80070057
call fcn.00404de0
push 0x80004005
call fcn.00404de0
int3