Function at 0x414990
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51270d
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x565300]
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 - 0x84], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x414a06
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.00411d30
cmp dword [ebp + 0xc], 0
je 0x414b5e
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x414b55
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x414b55
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x414b5e
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x40], xmm0
call esi
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call esi
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
cdq
sub eax, edx
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
sar eax, 1
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x28]
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 - 0x40]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
cmp esi, ecx
jge 0x414afc
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 - 0x3c]
mov ecx, dword [ebp - 0x14]
cmp edx, edi
jge 0x414b15
sub edi, edx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x38]
cmp eax, edi
jle 0x414b28
sub edi, eax
add esi, edi
add eax, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x34]
cmp ecx, edi
jle 0x414b3b
sub edi, ecx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x84]
sub ecx, edx
push 1
push ecx
sub eax, esi
push eax
push edx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x414b5e
push 0
mov ecx, edi
call fcn.00419820
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword fs:[0x2c]
mov esi, dword [edi]
mov dword [ebp - 0x7c], esi
mov edi, dword [eax]
mov eax, dword [0x579e10]
cmp eax, dword [edi + 4]
jg 0x415178
mov eax, dword [0x579e1c]
cmp eax, dword [edi + 4]
jg 0x4151d6
push 0x18
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.0050e592
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 [0x579e30]
test ecx, ecx
je 0x414c0b
mov edx, dword [0x579e2c]
add edx, ecx
mov ecx, dword [0x579e28]
mov dword [ebp - 0x84], edx
dec ecx
dec edx
mov eax, edx
and edx, 3
shr eax, 2
and ecx, eax
mov eax, dword [0x579e24]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x579e30]
mov edx, dword [0x579e2c]
mov edi, dword [0x579e28]
lea eax, [edx + ecx]
test al, 3
jne 0x414c40
lea eax, [ecx + 4]
shr eax, 2
cmp edi, eax
ja 0x414c40
push ecx
call fcn.004177c0
mov ecx, dword [0x579e30]
mov edx, dword [0x579e2c]
mov edi, dword [0x579e28]
lea eax, [edi*4 - 1]
and edx, eax
lea eax, [edi - 1]
mov dword [0x579e2c], edx
add edx, ecx
mov ecx, edx
mov dword [ebp - 0x84], edx
shr ecx, 2
and ecx, eax
mov eax, dword [0x579e24]
lea edi, [ecx*4]
cmp dword [edi + eax], 0
jne 0x414c91
push 0x10
call fcn.0050e592
mov ecx, dword [0x579e24]
add esp, 4
mov edx, dword [ebp - 0x84]
mov dword [edi + ecx], eax
mov eax, dword [0x579e24]
mov eax, dword [edi + eax]
and edx, 3
mov dword [eax + edx*4], esi
inc dword [0x579e30]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x414d85
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.00415a90
mov dword [eax], esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004185e0
mov ecx, dword [ebp - 0x84]
cmp byte [ecx + 0xd], 0
jne 0x414cfd
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ecx + 0x10]
jb 0x414cfd
cmp ecx, dword [0x579e14]
je 0x414cfd
lea eax, [ebp - 0x6c]
push eax
call fcn.00415e20
inc dword [eax]
jmp 0x414d0c
lea eax, [ebp - 0x6c]
push eax
call fcn.00415e20
mov dword [eax], 1
mov edi, dword [ebp - 0x78]
mov esi, dword [edi]
cmp esi, edi
je 0x414d88
test byte [esi + 0x14], 8
je 0x414d30
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 0x414d64
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x414d60
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x414d60
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x414d50
mov esi, eax
jmp 0x414d7c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x414d7c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x414d70
mov edi, dword [ebp - 0x78]
cmp esi, edi
jne 0x414d15
jmp 0x414d88
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x90]
cmp byte [eax + 0xdc], 0
jne 0x414f16
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 0x414f13
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x70], eax
call fcn.00404590
mov ecx, eax
test ecx, ecx
je 0x41523d
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 0x414e08
push 0x400
lea ecx, [ebp - 0x80]
call fcn.004039e0
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x415233
cmp eax, dword [esi - 8]
jg 0x415233
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x78]
call fcn.004183e0
mov eax, dword [ebp - 0x84]
cmp byte [eax + 0xd], 0
jne 0x414e7e
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [eax + 0x10]
jb 0x414e7e
cmp eax, dword [ebp - 0x78]
je 0x414e7e
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 0x414eb3
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
je 0x414eac
cmp eax, 2
je 0x414eac
cmp eax, 0x112
jne 0x414eb3
cmp dword [ebp - 0xa4], 0xf060
jne 0x414eb3
mov byte [edi + 0xdc], 1
cmp byte [edi + 0xdc], 0
jne 0x414f33
mov eax, dword [edi]
lea ecx, [ebp - 0xac]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x60]
call eax
test eax, eax
jne 0x414eea
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 0x414f06
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xdc], 0
je 0x414da0
mov edi, dword [ebp - 0x78]
mov ecx, dword [0x579e30]
sub ecx, 1
mov dword [0x579e30], ecx
jne 0x414f51
mov dword [0x579e2c], 0
jmp 0x414f86
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414f13
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414f13
mov edx, dword [0x579e2c]
mov eax, dword [0x579e28]
add edx, ecx
mov dword [ebp - 0x84], edx
dec eax
dec edx
mov ecx, edx
and edx, 3
shr ecx, 2
and ecx, eax
mov eax, dword [0x579e24]
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 0x415017
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004185e0
mov ecx, dword [ebp - 0x84]
lea edx, [esi + 0x10]
cmp byte [ecx + 0xd], 0
jne 0x414fbd
mov eax, dword [edx]
cmp eax, dword [ecx + 0x10]
jb 0x414fbd
mov eax, dword [0x579e14]
jmp 0x414fc4
mov eax, dword [0x579e14]
mov ecx, eax
cmp ecx, eax
je 0x414fd3
push edx
call fcn.00415e20
dec dword [eax]
mov edi, dword [ebp - 0x78]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x414ff9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x414ff5
cmp esi, dword [eax + 8]
jne 0x414ff5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x414fe5
mov esi, eax
jmp 0x41500f
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41500f
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x415003
cmp esi, edi
jne 0x414f90
mov eax, dword [0x579e14]
mov esi, dword [eax]
mov dword [ebp - 0x70], esi
cmp esi, eax
je 0x415099
cmp dword [esi + 0x14], 0
jg 0x415086
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x78]
call fcn.004183e0
mov ecx, dword [ebp - 0x84]
cmp byte [ecx + 0xd], 0
jne 0x415052
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
jae 0x415054
mov ecx, edi
cmp ecx, edi
je 0x415063
push 1
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x70]
call fcn.00416b40
push esi
mov ecx, 0x579e14
call fcn.00417e30
push 0x18
push eax
call fcn.0050e5c2
mov edi, dword [ebp - 0x78]
add esp, 8
jmp 0x41508e
lea ecx, [ebp - 0x70]
call fcn.00416b40
mov esi, dword [ebp - 0x70]
cmp esi, dword [0x579e14]
jne 0x415025
mov esi, dword [ebp - 0x90]
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4150ce
push dword [eax + 0x38]
call edi
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4150ce
mov dword [esi + 0xe0], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xa8], 0x12
jne 0x4150e1
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x415104
cmp byte [esi + 0xdd], 0
je 0x415104
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]
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415116
push dword [esi + 0x38]
call edi
mov eax, dword [ebp - 0x78]
mov edi, dword [esi + 0xd8]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x41514e
push dword [esi + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, eax
call fcn.00418560
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0050e5c2
add esp, 8
cmp byte [esi + 0xd], 0
je 0x415128
mov eax, dword [ebp - 0x78]
push 0x18
push eax
call fcn.0050e5c2
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.0050ea5d
mov esp, ebp
pop ebp
ret 0xc
push 0x579e10
call fcn.0050e9d5
add esp, 4
cmp dword [0x579e10], 0xffffffff
jne 0x414b87
push 0x18
mov dword [ebp - 4], 0
call fcn.0050e592
push 0x523570
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x579e14], eax
call fcn.0050e944
push 0x579e10
mov dword [ebp - 4], 0xffffffff
call fcn.0050e984
add esp, 0xc
jmp 0x414b87
push 0x579e1c
call fcn.0050e9d5
add esp, 4
cmp dword [0x579e1c], 0xffffffff
jne 0x414b98
push 8
mov dword [ebp - 4], 1
call fcn.0050e592
push 0x523560
mov dword [eax + 4], 0
mov dword [0x579e20], eax
mov dword [eax], 0x579e20
call fcn.0050e944
push 0x579e1c
mov dword [ebp - 4], 0xffffffff
call fcn.0050e984
add esp, 0xc
jmp 0x414b98
push 0x80070057
call fcn.00404110
push 0x80004005
call fcn.00404110
int3