Function at 0x40eec0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce96d
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5010c0]
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 0x40ef36
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.0040c4a0
cmp dword [ebp + 0xc], 0
je 0x40f091
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x40ef5a
push eax
mov ecx, edi
call fcn.00410170
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40f091
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40f091
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40f091
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 0x40f043
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 0x40f05c
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 0x40f06f
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 0x40f082
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 0x40f11a
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 - 0x20]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
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 [0x516958]
cmp eax, dword [edi + 4]
jg 0x40f710
mov eax, dword [0x516964]
cmp eax, dword [edi + 4]
jg 0x40f76e
push 0x18
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.0049f7ce
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 [0x516980]
test edx, edx
je 0x40f1cd
mov eax, dword [0x51697c]
dec eax
add edx, eax
mov eax, dword [0x516978]
mov ecx, edx
dec eax
shr ecx, 2
and edx, 3
and ecx, eax
mov eax, dword [0x516974]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x516980]
mov edi, dword [0x51697c]
mov ecx, dword [0x516978]
lea eax, [edi + edx]
test al, 3
jne 0x40f202
lea eax, [edx + 4]
shr eax, 2
cmp ecx, eax
ja 0x40f202
push ecx
call fcn.0040fb80
mov edx, dword [0x516980]
mov edi, dword [0x51697c]
mov ecx, dword [0x516978]
lea eax, [ecx*4 - 1]
and edi, eax
lea eax, [ecx - 1]
mov dword [0x51697c], 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 [0x516974]
cmp dword [esi + eax], 0
mov esi, dword [ebp - 0x80]
jne 0x40f255
push 0x10
call fcn.0049f7ce
mov ecx, dword [0x516974]
add esp, 4
mov edx, dword [ebp - 0x70]
mov dword [edx + ecx], eax
mov ecx, dword [0x516978]
mov edx, dword [ebp - 0x7c]
lea eax, [ecx - 1]
and edi, 3
mov ecx, dword [0x516974]
and eax, edx
mov eax, dword [ecx + eax*4]
mov dword [eax + edi*4], esi
inc dword [0x516980]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40f34b
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.0040f910
mov dword [eax], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004100e0
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xd], 0
jne 0x40f2c6
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ecx + 0x10]
jb 0x40f2c6
cmp ecx, dword [0x51695c]
je 0x40f2c6
lea eax, [ebp - 0x6c]
push eax
call fcn.0040fa80
inc dword [eax]
jmp 0x40f2d5
lea eax, [ebp - 0x6c]
push eax
call fcn.0040fa80
mov dword [eax], 1
mov edi, dword [ebp - 0x78]
mov esi, dword [edi]
cmp esi, edi
je 0x40f34e
nop
test byte [esi + 0x14], 8
je 0x40f2fb
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 0x40f32c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f328
cmp esi, dword [eax + 8]
jne 0x40f328
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f318
mov esi, eax
jmp 0x40f342
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f342
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f336
mov edi, dword [ebp - 0x78]
cmp esi, edi
jne 0x40f2e0
jmp 0x40f34e
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 0x40f4ef
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 0x40f4ec
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x70], eax
call fcn.00404f80
mov ecx, eax
test ecx, ecx
je 0x40f7d5
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 0x40f3e8
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.00404ae0
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.004abf56
add esp, 8
test eax, eax
js 0x40f7cb
cmp eax, dword [esi - 8]
jg 0x40f7cb
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.00404000
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd], 0
jne 0x40f457
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [eax + 0x10]
jb 0x40f457
cmp eax, dword [ebp - 0x78]
je 0x40f457
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 0x40f48c
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
je 0x40f485
cmp eax, 2
je 0x40f485
cmp eax, 0x112
jne 0x40f48c
cmp dword [ebp - 0x9c], 0xf060
jne 0x40f48c
mov byte [edi + 0xe4], 1
cmp byte [edi + 0xe4], 0
jne 0x40f50c
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x58]
call eax
test eax, eax
jne 0x40f4c3
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 0x40f4df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xe4], 0
je 0x40f380
mov edi, dword [ebp - 0x78]
mov ecx, dword [0x516980]
sub ecx, 1
mov dword [0x516980], ecx
jne 0x40f52a
mov dword [0x51697c], 0
jmp 0x40f559
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f4ec
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40f4ec
mov edx, dword [0x51697c]
mov eax, dword [0x516978]
dec edx
add edx, ecx
dec eax
mov ecx, edx
and edx, 3
shr ecx, 2
and ecx, eax
mov eax, dword [0x516974]
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 0x40f5e0
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004100e0
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x10]
cmp byte [ecx + 0xd], 0
jne 0x40f58a
mov eax, dword [edx]
cmp eax, dword [ecx + 0x10]
jb 0x40f58a
mov eax, dword [0x51695c]
jmp 0x40f591
mov eax, dword [0x51695c]
mov ecx, eax
cmp ecx, eax
je 0x40f5a0
push edx
call fcn.0040fa80
dec dword [eax]
mov edi, dword [ebp - 0x78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40f5c6
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f5c2
cmp esi, dword [eax + 8]
jne 0x40f5c2
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f5b2
mov esi, eax
jmp 0x40f5dc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40f5dc
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40f5d0
cmp esi, edi
jne 0x40f563
mov eax, dword [0x51695c]
mov esi, dword [eax]
mov dword [ebp - 0x70], esi
cmp esi, eax
je 0x40f65e
nop
cmp dword [esi + 0x14], 0
jg 0x40f64b
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x78]
call fcn.00404000
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xd], 0
jne 0x40f617
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
jae 0x40f619
mov ecx, edi
cmp ecx, edi
je 0x40f628
push 1
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x70]
call fcn.00403640
push esi
mov ecx, 0x51695c
call fcn.0040fdb0
push 0x18
push eax
call fcn.0049f7fe
mov edi, dword [ebp - 0x78]
add esp, 8
jmp 0x40f653
lea ecx, [ebp - 0x70]
call fcn.00403640
mov esi, dword [ebp - 0x70]
cmp esi, dword [0x51695c]
jne 0x40f5f0
cmp dword [ebp - 0xa0], 0x12
jne 0x40f671
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40f68b
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 0x40f6a5
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 0x40f6e6
nop dword [eax]
push dword [esi + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, eax
call fcn.004100a0
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0049f7fe
add esp, 8
cmp byte [esi + 0xd], 0
je 0x40f6c0
mov eax, dword [ebp - 0x78]
push 0x18
push eax
call fcn.0049f7fe
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.0049fb4b
mov esp, ebp
pop ebp
ret 0xc
push 0x516958
call fcn.0049fae7
add esp, 4
cmp dword [0x516958], 0xffffffff
jne 0x40f151
push 0x18
mov dword [ebp - 4], 0
call fcn.0049f7ce
push 0x4d8c50
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x51695c], eax
call fcn.0049fa56
push 0x516958
mov dword [ebp - 4], 0xffffffff
call fcn.0049fa96
add esp, 0xc
jmp 0x40f151
push 0x516964
call fcn.0049fae7
add esp, 4
cmp dword [0x516964], 0xffffffff
jne 0x40f162
push 8
mov dword [ebp - 4], 1
call fcn.0049f7ce
push 0x4d8c40
mov dword [eax + 4], 0
mov dword [0x516970], eax
mov dword [eax], 0x516970
call fcn.0049fa56
push 0x516964
mov dword [ebp - 4], 0xffffffff
call fcn.0049fa96
add esp, 0xc
jmp 0x40f162
push 0x80070057
call fcn.00404d50
push 0x80004005
call fcn.00404d50
int3