Function at 0x40eee0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d224d
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5060c0]
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 0x40ef56
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.0040c4e0
cmp dword [ebp + 0xc], 0
je 0x40f0b1
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x40ef7a
push eax
mov ecx, edi
call fcn.004101b0
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40f0b1
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40f0b1
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40f0b1
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 0x40f063
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 0x40f07c
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 0x40f08f
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 0x40f0a2
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 0x40f13a
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 [0x51bb58]
cmp eax, dword [edi + 4]
jg 0x40f730
mov eax, dword [0x51bb64]
cmp eax, dword [edi + 4]
jg 0x40f78e
push 0x18
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.004a2383
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 [0x51bb80]
test edx, edx
je 0x40f1ed
mov eax, dword [0x51bb7c]
dec eax
add edx, eax
mov eax, dword [0x51bb78]
mov ecx, edx
dec eax
shr ecx, 2
and edx, 3
and ecx, eax
mov eax, dword [0x51bb74]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x51bb80]
mov edi, dword [0x51bb7c]
mov ecx, dword [0x51bb78]
lea eax, [edi + edx]
test al, 3
jne 0x40f222
lea eax, [edx + 4]
shr eax, 2
cmp ecx, eax
ja 0x40f222
push ecx
call fcn.0040fba0
mov edx, dword [0x51bb80]
mov edi, dword [0x51bb7c]
mov ecx, dword [0x51bb78]
lea eax, [ecx*4 - 1]
and edi, eax
lea eax, [ecx - 1]
mov dword [0x51bb7c], 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 [0x51bb74]
cmp dword [esi + eax], 0
mov esi, dword [ebp - 0x80]
jne 0x40f275
push 0x10
call fcn.004a2383
mov ecx, dword [0x51bb74]
add esp, 4
mov edx, dword [ebp - 0x70]
mov dword [edx + ecx], eax
mov ecx, dword [0x51bb78]
mov edx, dword [ebp - 0x7c]
lea eax, [ecx - 1]
and edi, 3
mov ecx, dword [0x51bb74]
and eax, edx
mov eax, dword [ecx + eax*4]
mov dword [eax + edi*4], esi
inc dword [0x51bb80]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40f36b
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.0040f930
mov dword [eax], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410120
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x51bb5c]
cmp byte [ecx + 0xd], 0
jne 0x40f2d7
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ecx + 0x10]
jae 0x40f2d9
mov ecx, edx
lea eax, [ebp - 0x6c]
push eax
cmp ecx, edx
je 0x40f2ea
call fcn.0040faa0
inc dword [eax]
jmp 0x40f2f5
call fcn.0040faa0
mov dword [eax], 1
mov edi, dword [ebp - 0x78]
mov esi, dword [edi]
cmp esi, edi
je 0x40f36e
nop
test byte [esi + 0x14], 8
je 0x40f31b
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 0x40f34c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f348
cmp esi, dword [eax + 8]
jne 0x40f348
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f338
mov esi, eax
jmp 0x40f362
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f362
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f356
mov edi, dword [ebp - 0x78]
cmp esi, edi
jne 0x40f300
jmp 0x40f36e
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 0x40f513
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 0x40f510
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x70], eax
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x40f7f5
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 0x40f408
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.00404c30
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.004aec96
add esp, 8
test eax, eax
js 0x40f7eb
cmp eax, dword [esi - 8]
jg 0x40f7eb
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.00404120
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x78]
cmp byte [eax + 0xd], 0
jne 0x40f461
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [eax + 0x10]
jae 0x40f463
mov eax, edx
cmp eax, edx
je 0x40f47b
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 0x40f4b0
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
je 0x40f4a9
cmp eax, 2
je 0x40f4a9
cmp eax, 0x112
jne 0x40f4b0
cmp dword [ebp - 0x9c], 0xf060
jne 0x40f4b0
mov byte [edi + 0xe4], 1
cmp byte [edi + 0xe4], 0
jne 0x40f530
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x58]
call eax
test eax, eax
jne 0x40f4e7
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 0x40f503
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xe4], 0
je 0x40f3a0
mov edi, dword [ebp - 0x78]
mov ecx, dword [0x51bb80]
sub ecx, 1
mov dword [0x51bb80], ecx
jne 0x40f54e
mov dword [0x51bb7c], 0
jmp 0x40f57d
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f510
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40f510
mov edx, dword [0x51bb7c]
mov eax, dword [0x51bb78]
dec edx
add edx, ecx
dec eax
mov ecx, edx
and edx, 3
shr ecx, 2
and ecx, eax
mov eax, dword [0x51bb74]
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 0x40f604
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410120
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x10]
cmp byte [ecx + 0xd], 0
jne 0x40f5ae
mov eax, dword [edx]
cmp eax, dword [ecx + 0x10]
jb 0x40f5ae
mov eax, dword [0x51bb5c]
jmp 0x40f5b5
mov eax, dword [0x51bb5c]
mov ecx, eax
cmp ecx, eax
je 0x40f5c4
push edx
call fcn.0040faa0
dec dword [eax]
mov edi, dword [ebp - 0x78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40f5ea
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f5e6
cmp esi, dword [eax + 8]
jne 0x40f5e6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f5d6
mov esi, eax
jmp 0x40f600
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f600
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f5f4
cmp esi, edi
jne 0x40f587
mov eax, dword [0x51bb5c]
mov esi, dword [eax]
mov dword [ebp - 0x70], esi
cmp esi, eax
je 0x40f680
cmp dword [esi + 0x14], 0
jg 0x40f66d
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x78]
call fcn.00404120
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xd], 0
jne 0x40f639
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
jae 0x40f63b
mov ecx, edi
cmp ecx, edi
je 0x40f64a
push 1
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x70]
call fcn.00403720
push esi
mov ecx, 0x51bb5c
call fcn.0040fdc0
push 0x18
push eax
call fcn.004a23b3
mov edi, dword [ebp - 0x78]
add esp, 8
jmp 0x40f675
lea ecx, [ebp - 0x70]
call fcn.00403720
mov esi, dword [ebp - 0x70]
cmp esi, dword [0x51bb5c]
jne 0x40f612
cmp dword [ebp - 0xa0], 0x12
jne 0x40f693
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40f6ad
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 0x40f6c7
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 0x40f706
nop
push dword [esi + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, eax
call fcn.004100e0
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.004a23b3
add esp, 8
cmp byte [esi + 0xd], 0
je 0x40f6e0
mov eax, dword [ebp - 0x78]
push 0x18
push eax
call fcn.004a23b3
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.004a2700
mov esp, ebp
pop ebp
ret 0xc
push 0x51bb58
call fcn.004a269c
add esp, 4
cmp dword [0x51bb58], 0xffffffff
jne 0x40f171
push 0x18
mov dword [ebp - 4], 0
call fcn.004a2383
push 0x4dc900
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x51bb5c], eax
call fcn.004a260b
push 0x51bb58
mov dword [ebp - 4], 0xffffffff
call fcn.004a264b
add esp, 0xc
jmp 0x40f171
push 0x51bb64
call fcn.004a269c
add esp, 4
cmp dword [0x51bb64], 0xffffffff
jne 0x40f182
push 8
mov dword [ebp - 4], 1
call fcn.004a2383
push 0x4dc8f0
mov dword [eax + 4], 0
mov dword [0x51bb70], eax
mov dword [eax], 0x51bb70
call fcn.004a260b
push 0x51bb64
mov dword [ebp - 4], 0xffffffff
call fcn.004a264b
add esp, 0xc
jmp 0x40f182
push 0x80070057
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
int3