Function at 0x413d80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d66fd
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x50b0c0]
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 0x413df6
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.004115f0
cmp dword [ebp + 0xc], 0
je 0x413f51
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x413e1a
push eax
mov ecx, edi
call fcn.00415070
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x413f51
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x413f51
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x413f51
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 0x413f03
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 0x413f1c
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 0x413f2f
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 0x413f42
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 0x413fda
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 [0x520d58]
cmp eax, dword [edi + 4]
jg 0x4145f0
mov eax, dword [0x520d64]
cmp eax, dword [edi + 4]
jg 0x41464e
push 0x18
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.004a6623
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 [0x520d80]
test edx, edx
je 0x41408d
mov eax, dword [0x520d7c]
dec eax
add edx, eax
mov eax, dword [0x520d78]
mov ecx, edx
dec eax
shr ecx, 2
and edx, 3
and ecx, eax
mov eax, dword [0x520d74]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x520d80]
mov edi, dword [0x520d7c]
mov ecx, dword [0x520d78]
lea eax, [edi + edx]
test al, 3
jne 0x4140c2
lea eax, [edx + 4]
shr eax, 2
cmp ecx, eax
ja 0x4140c2
push ecx
call fcn.00414a60
mov edx, dword [0x520d80]
mov edi, dword [0x520d7c]
mov ecx, dword [0x520d78]
lea eax, [ecx*4 - 1]
and edi, eax
lea eax, [ecx - 1]
mov dword [0x520d7c], 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 [0x520d74]
cmp dword [esi + eax], 0
mov esi, dword [ebp - 0x80]
jne 0x414115
push 0x10
call fcn.004a6623
mov ecx, dword [0x520d74]
add esp, 4
mov edx, dword [ebp - 0x70]
mov dword [edx + ecx], eax
mov ecx, dword [0x520d78]
mov edx, dword [ebp - 0x7c]
lea eax, [ecx - 1]
and edi, 3
mov ecx, dword [0x520d74]
and eax, edx
mov eax, dword [ecx + eax*4]
mov dword [eax + edi*4], esi
inc dword [0x520d80]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x41420b
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.004147f0
mov dword [eax], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00414fe0
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x520d5c]
cmp byte [ecx + 0xd], 0
jne 0x414177
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ecx + 0x10]
jae 0x414179
mov ecx, edx
lea eax, [ebp - 0x6c]
push eax
cmp ecx, edx
je 0x41418a
call fcn.00414960
inc dword [eax]
jmp 0x414195
call fcn.00414960
mov dword [eax], 1
mov edi, dword [ebp - 0x78]
mov esi, dword [edi]
cmp esi, edi
je 0x41420e
nop
test byte [esi + 0x14], 8
je 0x4141bb
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 0x4141ec
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4141e8
cmp esi, dword [eax + 8]
jne 0x4141e8
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4141d8
mov esi, eax
jmp 0x414202
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x414202
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4141f6
mov edi, dword [ebp - 0x78]
cmp esi, edi
jne 0x4141a0
jmp 0x41420e
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 0x4143d3
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 0x4143d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x70], eax
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4146b5
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 0x4142a8
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.00409bc0
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.004b30c6
add esp, 8
test eax, eax
js 0x4146ab
cmp eax, dword [esi - 8]
jg 0x4146ab
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.004090e0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x78]
cmp byte [eax + 0xd], 0
jne 0x414301
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [eax + 0x10]
jae 0x414303
mov eax, edx
cmp eax, edx
je 0x41431b
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 0x414350
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
je 0x414349
cmp eax, 2
je 0x414349
cmp eax, 0x112
jne 0x414350
cmp dword [ebp - 0x9c], 0xf060
jne 0x414350
mov byte [edi + 0xe4], 1
cmp byte [edi + 0xe4], 0
jne 0x4143f0
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x58]
call eax
test eax, eax
jne 0x4143a7
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]
xorps xmm0, xmm0
mov dword [ebp - 0x8c], 0
movups xmmword [ebp - 0xa4], xmm0
movq qword [ebp - 0x94], xmm0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4143c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xe4], 0
je 0x414240
mov edi, dword [ebp - 0x78]
mov ecx, dword [0x520d80]
sub ecx, 1
mov dword [0x520d80], ecx
jne 0x41440e
mov dword [0x520d7c], 0
jmp 0x41443d
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4143d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4143d0
mov edx, dword [0x520d7c]
mov eax, dword [0x520d78]
dec edx
add edx, ecx
dec eax
mov ecx, edx
and edx, 3
shr ecx, 2
and ecx, eax
mov eax, dword [0x520d74]
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 0x4144c4
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00414fe0
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x10]
cmp byte [ecx + 0xd], 0
jne 0x41446e
mov eax, dword [edx]
cmp eax, dword [ecx + 0x10]
jb 0x41446e
mov eax, dword [0x520d5c]
jmp 0x414475
mov eax, dword [0x520d5c]
mov ecx, eax
cmp ecx, eax
je 0x414484
push edx
call fcn.00414960
dec dword [eax]
mov edi, dword [ebp - 0x78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4144aa
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4144a6
cmp esi, dword [eax + 8]
jne 0x4144a6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x414496
mov esi, eax
jmp 0x4144c0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4144c0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4144b4
cmp esi, edi
jne 0x414447
mov eax, dword [0x520d5c]
mov esi, dword [eax]
mov dword [ebp - 0x70], esi
cmp esi, eax
je 0x414540
cmp dword [esi + 0x14], 0
jg 0x41452d
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x78]
call fcn.004090e0
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xd], 0
jne 0x4144f9
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
jae 0x4144fb
mov ecx, edi
cmp ecx, edi
je 0x41450a
push 1
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x70]
call fcn.004086e0
push esi
mov ecx, 0x520d5c
call fcn.00414c80
push 0x18
push eax
call fcn.004a6653
mov edi, dword [ebp - 0x78]
add esp, 8
jmp 0x414535
lea ecx, [ebp - 0x70]
call fcn.004086e0
mov esi, dword [ebp - 0x70]
cmp esi, dword [0x520d5c]
jne 0x4144d2
cmp dword [ebp - 0xa0], 0x12
jne 0x414553
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x41456d
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 0x414587
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 0x4145c6
nop
push dword [esi + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, eax
call fcn.00414fa0
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.004a6653
add esp, 8
cmp byte [esi + 0xd], 0
je 0x4145a0
mov eax, dword [ebp - 0x78]
push 0x18
push eax
call fcn.004a6653
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.004a69a0
mov esp, ebp
pop ebp
ret 0xc
push 0x520d58
call fcn.004a693c
add esp, 4
cmp dword [0x520d58], 0xffffffff
jne 0x414011
push 0x18
mov dword [ebp - 4], 0
call fcn.004a6623
push 0x4e1640
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x520d5c], eax
call fcn.004a68ab
push 0x520d58
mov dword [ebp - 4], 0xffffffff
call fcn.004a68eb
add esp, 0xc
jmp 0x414011
push 0x520d64
call fcn.004a693c
add esp, 4
cmp dword [0x520d64], 0xffffffff
jne 0x414022
push 8
mov dword [ebp - 4], 1
call fcn.004a6623
push 0x4e1630
mov dword [eax + 4], 0
mov dword [0x520d70], eax
mov dword [eax], 0x520d70
call fcn.004a68ab
push 0x520d64
mov dword [ebp - 4], 0xffffffff
call fcn.004a68eb
add esp, 0xc
jmp 0x414022
push 0x80070057
call fcn.00409e30
push 0x80004005
call fcn.00409e30
int3