Function at 0x41a240
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
xor ebx, ebx
cmp edx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x24], 1
je 0x41a2c6
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, str.scripts
xor ecx, ecx
call fcn.0050ee40
test eax, eax
je 0x41a2c6
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push ebx
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x14], 2
jne 0x41a2c2
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp + 0x24], ebx
push ebx
push ebx
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x44]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cdq
sub eax, edx
push 1
sar eax, 1
push esi
mov dword [esp + 0x1c], eax
call edi
lea ecx, [esp + 0x2c]
mov ebp, eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x30]
push edx
push esi
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
sub ecx, edx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x38]
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
push 0
sar eax, 1
push ebx
push ecx
mov edx, 0xfffffffb
sub edx, eax
mov eax, dword [esp + 0x20]
sub edx, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x54]
sub ecx, ebx
sub ecx, 4
add eax, edx
push ecx
push eax
push ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push ebp
call ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_UpdateWindow]
call ebp
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
push 2
lea ecx, [edx + eax + 5]
push esi
mov dword [esp + 0x1c], ecx
call edi
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x30]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
xor edx, edx
push edx
push eax
push ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x54]
sub ecx, eax
sub ecx, 4
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
push 9
lea edx, [eax + ecx + 5]
push esi
mov dword [esp + 0x1c], edx
call edi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x30]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
xor edx, edx
push edx
push eax
push ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x54]
sub ecx, eax
sub ecx, 4
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
push 0x68
push esi
call edi
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x50]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x48]
sub eax, edx
inc eax
sub ecx, eax
mov dword [esp + 0x58], eax
sub ecx, dword [esp + 0x38]
push 0x66
sub ecx, 0xb
push esi
mov dword [esp + 0x1c], ecx
call edi
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x30]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
sub edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x30]
xor eax, eax
push eax
sub ecx, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
add ecx, 0xfffffffa
push ecx
push edx
push 3
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
sub dword [esp + 0x14], 2
push 0x12e
push esi
call edi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x30]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
xor edx, edx
push 1
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x4c]
push eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
sub edx, eax
push ecx
sub edx, 0xd
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x34]
push 0x12d
sub eax, 0xd
push esi
mov dword [esp + 0x24], eax
call edi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x30]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
xor ecx, ecx
push 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x20]
sub eax, edx
push eax
add ecx, 0xffffffec
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
push 0xd
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x10]
push 1
push 0
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ecx, 0xfffffff2
sub ecx, eax
push 0x132
add edx, ecx
push esi
mov dword [esp + 0x1c], edx
call edi
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x30]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ecx, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x34], eax
sub edx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
add edx, 0xfffffff2
lea eax, [ecx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
sub eax, dword [esp + 0x58]
add eax, 0x12
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
sar eax, 1
sub ecx, eax
lea eax, [ecx + edx + 8]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 1
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff6
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x10]
push 1
push 0
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
push 0x130
push esi
call edi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x30]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
push 1
xor edx, edx
push ecx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x2c]
push ecx
sub edx, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, 0xfffffffc
sub eax, ecx
push 0x131
add edx, eax
push esi
mov dword [esp + 0x20], edx
call edi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x30]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
xor edx, edx
push 1
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
push eax
mov dword [esp + 0x40], eax
push ecx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, 0xfffffffc
sub eax, ecx
push 0x12f
add edx, eax
push esi
mov dword [esp + 0x20], edx
call edi
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x30]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
push 1
sub eax, edx
mov edx, dword [esp + 0x14]
add ecx, 0xffffffef
push eax
push ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
sub ecx, eax
add ecx, 0x14
push ecx
push 0xd
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x10]
push 1
push 0
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
push 0x12c
push esi
call edi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov edi, eax
mov eax, dword [esp + 0x1c]
push 1
sub edx, eax
push edx
add ecx, 0xfffffff4
push ecx
add eax, 0x19
push eax
push 6
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push 0
push edi
call ebx
push edi
call ebp
push 0
push 1
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push esi
call ebx
push esi
call ebp
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret