Function at 0x40eca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cda4d
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4fe0c0]
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 - 0x90], esi
mov eax, dword [ebp + 8]
lea edi, [esi + 0x38]
push dword [edi]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x8c], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ed16
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.0040c270
cmp dword [ebp + 0xc], 0
je 0x40ee60
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x40ed3a
push eax
mov ecx, edi
call fcn.0040ff60
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40ee60
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40ee60
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 - 0x80], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x7c], eax
lea eax, [edi + esi]
cdq
sub eax, edx
mov edx, dword [ebp - 0x80]
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 - 0x7c]
sub edx, dword [ebp - 0x7c]
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 0x40ee12
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 0x40ee2b
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 0x40ee3e
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 0x40ee51
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 0x40eee9
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push dword [edi]
movups xmmword [ebp - 0x30], 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 - 0x40]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
push 1
push eax
mov eax, dword [ebp - 0x28]
sub eax, edi
sub edi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x40]
add edi, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
mov esi, dword [ebp - 0x8c]
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 - 0x7c], esi
mov edi, dword [eax]
mov eax, dword [0x513918]
cmp eax, dword [edi + 4]
jg 0x40f4e0
mov eax, dword [0x513924]
cmp eax, dword [edi + 4]
jg 0x40f53e
push 0x18
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.0049ca7e
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 ecx, dword [0x513940]
test ecx, ecx
je 0x40efa1
mov edx, dword [0x51393c]
add edx, ecx
mov ecx, dword [0x513938]
mov dword [ebp - 0x80], edx
dec ecx
dec edx
mov eax, edx
and edx, 3
shr eax, 2
and ecx, eax
mov eax, dword [0x513934]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x513940]
mov edx, dword [0x51393c]
mov edi, dword [0x513938]
lea eax, [edx + ecx]
test al, 3
jne 0x40efd6
lea eax, [ecx + 4]
shr eax, 2
cmp edi, eax
ja 0x40efd6
push ecx
call fcn.0040f970
mov ecx, dword [0x513940]
mov edx, dword [0x51393c]
mov edi, dword [0x513938]
lea eax, [edi*4 - 1]
and edx, eax
lea eax, [edi - 1]
mov dword [0x51393c], edx
add edx, ecx
mov ecx, edx
mov dword [ebp - 0x80], edx
shr ecx, 2
and ecx, eax
mov eax, dword [0x513934]
lea edi, [ecx*4]
cmp dword [edi + eax], 0
jne 0x40f021
push 0x10
call fcn.0049ca7e
mov ecx, dword [0x513934]
add esp, 4
mov edx, dword [ebp - 0x80]
mov dword [edi + ecx], eax
mov eax, dword [0x513934]
mov eax, dword [edi + eax]
and edx, 3
mov dword [eax + edx*4], esi
inc dword [0x513940]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40f115
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.0040f700
mov dword [eax], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040fec0
mov ecx, dword [ebp - 0x80]
cmp byte [ecx + 0xd], 0
jne 0x40f08a
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ecx + 0x10]
jb 0x40f08a
cmp ecx, dword [0x51391c]
je 0x40f08a
lea eax, [ebp - 0x6c]
push eax
call fcn.0040f870
inc dword [eax]
jmp 0x40f099
lea eax, [ebp - 0x6c]
push eax
call fcn.0040f870
mov dword [eax], 1
mov edi, dword [ebp - 0x78]
mov esi, dword [edi]
cmp esi, edi
je 0x40f118
test byte [esi + 0x14], 8
je 0x40f0bd
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x7c]
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 0x40f0f4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f0f0
nop word [eax + eax]
cmp esi, dword [eax + 8]
jne 0x40f0f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f0e0
mov esi, eax
jmp 0x40f10c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f10c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f100
mov edi, dword [ebp - 0x78]
cmp esi, edi
jne 0x40f0a2
jmp 0x40f118
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x90]
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x94], 0
movq qword [ebp - 0x9c], xmm0
cmp byte [eax + 0xe4], 0
jne 0x40f2bf
mov edi, eax
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40f2bc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x70], eax
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x40f5a5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x80], 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 0x40f1b8
push 0x400
lea ecx, [ebp - 0x80]
call fcn.00404940
mov esi, dword [ebp - 0x80]
push 0x400
push esi
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.004ab044
add esp, 8
test eax, eax
js 0x40f59b
cmp eax, dword [esi - 8]
jg 0x40f59b
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.00403e60
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
jne 0x40f227
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [eax + 0x10]
jb 0x40f227
cmp eax, dword [ebp - 0x78]
je 0x40f227
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0xac], eax
jne 0x40f25c
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
je 0x40f255
cmp eax, 2
je 0x40f255
cmp eax, 0x112
jne 0x40f25c
cmp dword [ebp - 0xa4], 0xf060
jne 0x40f25c
mov byte [edi + 0xe4], 1
cmp byte [edi + 0xe4], 0
jne 0x40f2dc
mov eax, dword [edi]
lea ecx, [ebp - 0xac]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x58]
call eax
test eax, eax
jne 0x40f293
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xac]
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 0x40f2af
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xe4], 0
je 0x40f150
mov edi, dword [ebp - 0x78]
mov ecx, dword [0x513940]
sub ecx, 1
mov dword [0x513940], ecx
jne 0x40f2fa
mov dword [0x51393c], 0
jmp 0x40f32a
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f2bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40f2bc
mov edx, dword [0x51393c]
add edx, ecx
mov ecx, dword [0x513938]
dec edx
dec ecx
mov eax, edx
and edx, 3
shr eax, 2
and ecx, eax
mov eax, dword [0x513934]
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 0x40f3b1
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040fec0
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x10]
cmp byte [ecx + 0xd], 0
jne 0x40f35b
mov eax, dword [edx]
cmp eax, dword [ecx + 0x10]
jb 0x40f35b
mov eax, dword [0x51391c]
jmp 0x40f362
mov eax, dword [0x51391c]
mov ecx, eax
cmp ecx, eax
je 0x40f371
push edx
call fcn.0040f870
dec dword [eax]
mov edi, dword [ebp - 0x78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40f397
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f393
cmp esi, dword [eax + 8]
jne 0x40f393
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f383
mov esi, eax
jmp 0x40f3ad
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f3ad
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f3a1
cmp esi, edi
jne 0x40f334
mov eax, dword [0x51391c]
mov esi, dword [eax]
mov dword [ebp - 0x70], esi
cmp esi, eax
je 0x40f42e
nop
cmp dword [esi + 0x14], 0
jg 0x40f41b
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x78]
call fcn.00403e60
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xd], 0
jne 0x40f3e7
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
jae 0x40f3e9
mov ecx, edi
cmp ecx, edi
je 0x40f3f8
push 1
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x70]
call fcn.004034a0
push esi
mov ecx, 0x51391c
call fcn.0040fb90
push 0x18
push eax
call fcn.0049caae
mov edi, dword [ebp - 0x78]
add esp, 8
jmp 0x40f423
lea ecx, [ebp - 0x70]
call fcn.004034a0
mov esi, dword [ebp - 0x70]
cmp esi, dword [0x51391c]
jne 0x40f3c0
cmp dword [ebp - 0xa8], 0x12
jne 0x40f441
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40f45b
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov esi, dword [ebp - 0x8c]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f475
push dword [esi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x90]
mov edi, dword [eax + 0xe0]
mov eax, dword [ebp - 0x78]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x40f4b6
nop dword [eax]
push dword [esi + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, eax
call fcn.0040fe80
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0049caae
add esp, 8
cmp byte [esi + 0xd], 0
je 0x40f490
mov eax, dword [ebp - 0x78]
push 0x18
push eax
call fcn.0049caae
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.0049cdfb
mov esp, ebp
pop ebp
ret 0xc
push 0x513918
call fcn.0049cd97
add esp, 4
cmp dword [0x513918], 0xffffffff
jne 0x40ef20
push 0x18
mov dword [ebp - 4], 0
call fcn.0049ca7e
push 0x4d79f0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x51391c], eax
call fcn.0049cd06
push 0x513918
mov dword [ebp - 4], 0xffffffff
call fcn.0049cd46
add esp, 0xc
jmp 0x40ef20
push 0x513924
call fcn.0049cd97
add esp, 4
cmp dword [0x513924], 0xffffffff
jne 0x40ef31
push 8
mov dword [ebp - 4], 1
call fcn.0049ca7e
push 0x4d79e0
mov dword [eax + 4], 0
mov dword [0x513930], eax
mov dword [eax], 0x513930
call fcn.0049cd06
push 0x513924
mov dword [ebp - 4], 0xffffffff
call fcn.0049cd46
add esp, 0xc
jmp 0x40ef31
push 0x80070057
call fcn.00404bb0
push 0x80004005
call fcn.00404bb0
int3