Function at 0x41b7f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0008
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x50d108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 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 0x41b864
push eax
push ecx
mov eax, esp
push 0
push SysReAllocString
push 0
push ecx
mov dword [eax], 0
mov ecx, ebx
mov eax, esp
mov dword [eax], 0
push dword [ebp - 0x6c]
call fcn.00419c50
cmp dword [ebp + 0xc], 0
je 0x41b9b9
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x41b9b0
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x41b9b0
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x41b9b9
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]
mov esi, dword [ebp - 0x20]
sar eax, 1
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x28]
push 2
push dword [ebp - 0x6c]
lea eax, [eax + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar ecx, 1
mov ebx, eax
mov dword [ebp - 0x70], ecx
lea eax, [edi + esi]
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
add esi, ecx
mov ecx, dword [ebp - 0x70]
sub ecx, eax
mov dword [ebp - 0x20], esi
add edi, ecx
mov ecx, dword [ebp - 0x80]
mov eax, ecx
mov dword [ebp - 0x18], edi
sub eax, ebx
sub ecx, ebx
add dword [ebp - 0x1c], eax
add dword [ebp - 0x14], ecx
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 0x41b957
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 0x41b970
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 0x41b983
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 0x41b996
sub edi, ecx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x8c]
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 0x41b9b9
push 0
mov ecx, edi
call fcn.0041da70
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
mov dword [ebp - 0x70], eax
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov eax, dword [0x513d8c]
mov dword [ebp - 0x8c], ebx
cmp eax, dword [ebx + 4]
jle 0x41ba29
push 0x513d8c
call fcn.0048a3e8
add esp, 4
cmp dword [0x513d8c], 0xffffffff
jne 0x41ba29
mov dword [ebp - 4], 0
call fcn.00413df0
push 0x4d8ca0
mov dword [0x513d90], eax
call fcn.0048a29f
push 0x513d8c
mov dword [ebp - 4], 0xffffffff
call fcn.0048a3a9
add esp, 8
mov eax, dword [0x513d98]
cmp eax, dword [ebx + 4]
jle 0x41ba76
push 0x513d98
call fcn.0048a3e8
add esp, 4
cmp dword [0x513d98], 0xffffffff
jne 0x41ba76
mov dword [ebp - 4], 1
call fcn.0041cba0
push 0x4d8c60
call fcn.0048a29f
push 0x513d98
mov dword [ebp - 4], 0xffffffff
call fcn.0048a3a9
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call fcn.00413df0
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 2
cmp dword [0x513db0], 0
je 0x41bade
push ecx
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041cda0
mov ecx, eax
call fcn.0041cb60
mov esi, dword [eax]
test esi, esi
je 0x41babc
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x70]
push eax
call fcn.0041c9e0
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
test eax, eax
je 0x41bbe0
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041cf20
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ecx + 0x14], esi
call fcn.0041c650
mov eax, dword [eax]
cmp eax, dword [0x513d90]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x84]
push eax
je 0x41bb4e
call fcn.0041cfb0
mov eax, dword [ebp - 0x84]
inc dword [eax + 0x14]
jmp 0x41bb60
call fcn.0041cfb0
mov eax, dword [ebp - 0x84]
mov dword [eax + 0x14], 1
mov edx, dword [ebp - 0x78]
mov esi, dword [edx]
cmp esi, edx
je 0x41bbe3
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
nop
test byte [esi + 0x14], 8
je 0x41bb85
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call edi
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0xd], 0
jne 0x41bbd7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x41bbbc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x41bbd7
nop dword [eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x41bbb0
jmp 0x41bbd7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41bbd5
cmp esi, dword [eax + 8]
jne 0x41bbd5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41bbc5
mov esi, eax
mov edx, dword [ebp - 0x78]
cmp esi, edx
jne 0x41bb70
jmp 0x41bbe3
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
cmp byte [eax + 0xdc], 0
jne 0x41be10
push 0
push 0
push 0
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x41be0d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x5128e4]
mov edi, eax
mov eax, dword [ebp - 0x8c]
cmp ecx, dword [eax + 4]
jle 0x41bcc8
push 0x5128e4
call fcn.0048a3e8
add esp, 4
cmp dword [0x5128e4], 0xffffffff
jne 0x41bcc8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4d8bd0
mov dword [0x512904], 0x4da804
mov dword [0x512908], eax
mov byte [0x51290c], 0
call fcn.0048a29f
xor eax, eax
mov dword [0x5128e8], 0x4da81c
push 0x4d8c00
mov dword [0x5128ec], 0x512904
mov dword [0x5128fc], 2
mov dword [0x5128f4], 0
mov dword [0x5128f8], 0
mov dword [0x512900], eax
mov dword [0x5128f0], 0x5128e8
call fcn.0048a29f
push 0x5128e4
call fcn.0048a3a9
add esp, 0xc
mov eax, dword [0x5128e8]
mov ecx, 0x5128e8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x70], 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 0x41bd03
push 0x400
lea ecx, [ebp - 0x70]
call fcn.004041b0
mov esi, dword [ebp - 0x70]
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.004ac7d7
add esp, 8
test eax, eax
js 0x41be81
cmp eax, dword [esi - 8]
jg 0x41be81
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebp - 0x78]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x41bd71
cmp dword [eax + 0x10], edi
jae 0x41bd4e
mov eax, dword [eax + 8]
jmp 0x41bd52
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x41bd44
cmp ecx, edx
je 0x41bd71
cmp edi, dword [ecx + 0x10]
jb 0x41bd71
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0xb0], ebx
jne 0x41bda8
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
je 0x41be59
cmp eax, 2
je 0x41be59
cmp eax, 0x112
jne 0x41bda8
cmp dword [ebp - 0xa8], 0xf060
je 0x41be59
mov edi, dword [ebp - 0x7c]
cmp byte [edi + 0xdc], 0
jne 0x41be63
mov eax, dword [edi]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, edi
call dword [eax + 0x60]
test eax, eax
jne 0x41bde4
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb0]
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 0x41be00
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xdc], 0
je 0x41bbf3
mov edx, dword [ebp - 0x78]
mov ecx, dword [0x513db0]
mov esi, 0
mov eax, dword [0x513dac]
sub ecx, 1
mov dword [0x513db0], ecx
cmove eax, esi
mov dword [0x513dac], eax
test ecx, ecx
je 0x41beb2
push ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0041cda0
mov ecx, eax
call fcn.0041cb60
mov esi, dword [eax]
test esi, esi
jne 0x41be8b
jmp 0x41be8d
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0xdc], 1
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41be0d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41be0d
push 0x80070057
call fcn.00404660
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov ecx, edx
mov eax, dword [esi + 8]
and edx, 3
dec eax
shr ecx, 2
and ecx, eax
mov eax, dword [esi + 4]
push 1
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x78]
mov esi, dword [edx]
mov ebx, dword [0x513d90]
cmp esi, edx
je 0x41bf5a
mov eax, dword [ebx + 4]
mov ecx, ebx
cmp byte [eax + 0xd], 0
jne 0x41bf0f
mov edi, dword [esi + 0x10]
cmp dword [eax + 0x10], edi
jae 0x41beda
mov eax, dword [eax + 8]
jmp 0x41bede
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x41bed0
cmp ecx, ebx
je 0x41bf0f
cmp edi, dword [ecx + 0x10]
jb 0x41bf0f
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0041cfb0
mov eax, dword [ebp - 0x90]
dec dword [eax + 0x14]
mov ebx, dword [0x513d90]
mov edx, dword [ebp - 0x78]
cmp byte [esi + 0xd], 0
jne 0x41bf52
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x41bf34
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x41bf52
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x41bf28
jmp 0x41bf52
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41bf50
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x41bf50
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41bf40
mov esi, eax
cmp esi, edx
jne 0x41bec2
mov esi, dword [ebx]
cmp esi, ebx
je 0x41c05a
cmp dword [esi + 0x14], 0
jg 0x41c00f
mov ecx, dword [edx + 4]
mov eax, edx
cmp byte [ecx + 0xd], 0
jne 0x41bf9d
mov edi, dword [esi + 0x10]
nop dword [eax]
cmp dword [ecx + 0x10], edi
jae 0x41bf8a
mov ecx, dword [ecx + 8]
jmp 0x41bf8e
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x41bf80
cmp eax, edx
je 0x41bf9d
cmp edi, dword [eax + 0x10]
jae 0x41bf9f
mov eax, edx
cmp eax, edx
je 0x41bfae
push 1
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0xd], 0
mov eax, esi
jne 0x41bff7
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], 0
jne 0x41bfdc
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41bff7
nop dword [eax]
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
je 0x41bfd0
jmp 0x41bff7
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x41bff5
cmp esi, dword [ecx + 8]
jne 0x41bff5
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x41bfe5
mov esi, ecx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0041c6b0
mov ebx, dword [0x513d90]
mov edx, dword [ebp - 0x78]
jmp 0x41c052
cmp byte [esi + 0xd], 0
jne 0x41c052
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x41c034
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x41c052
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x41c028
jmp 0x41c052
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41c050
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x41c050
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41c040
mov esi, eax
cmp esi, ebx
jne 0x41bf64
mov ebx, dword [ebp - 0x7c]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x41c08c
push dword [eax + 0x38]
call esi
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x41c08c
mov dword [ebx + 0xe0], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xac], 0x12
jne 0x41c09f
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x41c0c2
cmp byte [ebx + 0xdd], 0
je 0x41c0c2
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41c0d4
push dword [ebx + 0x38]
call esi
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x8c]
mov esi, dword [ebx + 0xd8]
push ecx
push dword [ecx]
lea ecx, [ebp - 0x78]
push eax
call fcn.00401fb0
push dword [ebp - 0x78]
call fcn.00489f2d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a4ec
mov esp, ebp
pop ebp
ret 0xc