Function at 0x41c790
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x50]
test eax, eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
push esi
mov esi, dword [esp + 0x58]
push edi
mov dword [esp + 0x20], 1
je 0x41c824
lea eax, [esp + 0x38]
push eax
push esi
call ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x50]
push ecx
push str.scripts
push 0
call fcn.00521800
add esp, 0x24
test eax, eax
je 0x41c824
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push 0
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esp + 0x10], 2
jne 0x41c81c
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp + 0x20], 0
push 0
push 0
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x40]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cdq
sub eax, edx
push 1
sar eax, 1
push esi
mov dword [esp + 0x18], eax
call edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x68], eax
call ebp
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea edx, [esp + 0x2c]
push edx
push esi
push 0
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub dword [esp + 0x34], edx
sub ecx, eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edx, 0xfffffffb
sub edx, eax
mov eax, dword [esp + 0x10]
sub edx, ecx
add eax, edx
mov edx, dword [esp + 0x34]
push 0
push edx
push ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [esp + 0x6c]
sub ecx, 4
push ecx
push eax
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x60]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x60]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
push 2
lea ecx, [edx + eax + 5]
push esi
mov dword [esp + 0x18], ecx
call edi
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea eax, [esp + 0x2c]
push eax
push esi
push 0
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
xor edx, edx
push edx
push eax
push ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x50]
sub ecx, eax
sub ecx, 4
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x60]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push 9
lea edx, [eax + ecx + 5]
push esi
mov dword [esp + 0x18], edx
call edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea edx, [esp + 0x2c]
push edx
push esi
push 0
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
xor edx, edx
push edx
push eax
push ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x50]
sub ecx, eax
sub ecx, 4
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x70]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x60]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x68
push esi
call edi
lea ecx, [esp + 0x48]
push ecx
push eax
call ebp
push 2
lea edx, [esp + 0x4c]
push edx
push esi
push 0
call ebx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
sub ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x44]
sub eax, edx
inc eax
sub ecx, eax
mov dword [esp + 0x54], eax
sub ecx, dword [esp + 0x34]
push 0x66
sub ecx, 0xb
push esi
mov dword [esp + 0x18], ecx
call edi
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea eax, [esp + 0x2c]
push eax
push esi
push 0
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x10]
push 0
add edx, 0xfffffffb
push edx
mov edx, dword [esp + 0x5c]
add ecx, 0xfffffffb
push ecx
add edx, 5
push edx
push eax
mov eax, dword [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x60]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
sub dword [esp + 0x10], 2
push 0x12e
push esi
call edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea edx, [esp + 0x2c]
push edx
push esi
push 0
call ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
xor edx, edx
push 1
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x48]
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
sub edx, eax
push ecx
sub edx, 0xd
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x60]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x30]
push 0x12d
sub eax, 0xd
push esi
mov dword [esp + 0x20], eax
call edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea edx, [esp + 0x2c]
push edx
push esi
push 0
call ebx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
push 1
mov dword [esp + 0x2c], ecx
sub eax, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0xffffffec
push ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x70]
push 0xd
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x60]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffff2
sub ecx, eax
push 0x132
add edx, ecx
push esi
mov dword [esp + 0x18], edx
call edi
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea eax, [esp + 0x2c]
push eax
push esi
push 0
call ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x34]
sub ecx, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
sub edx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
add edx, 0xfffffff2
lea eax, [ecx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
sub eax, dword [esp + 0x54]
add eax, 0x12
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
sar eax, 1
sub ecx, eax
lea eax, [ecx + edx + 8]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 1
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff6
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x60]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x130
push esi
call edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea edx, [esp + 0x2c]
push edx
push esi
push 0
call ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push 1
xor edx, edx
push ecx
push eax
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 ecx
sub edx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x60]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, 0xfffffffc
sub eax, ecx
push 0x131
add edx, eax
push esi
mov dword [esp + 0x1c], edx
call edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea edx, [esp + 0x2c]
push edx
push esi
push 0
call ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x34]
xor edx, edx
sub ecx, dword [esp + 0x2c]
push 1
push ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
push ecx
sub edx, eax
mov eax, dword [esp + 0x70]
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x60]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, 0xfffffffc
sub eax, ecx
push 0x12f
add edx, eax
push esi
mov dword [esp + 0x1c], edx
call edi
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x68], eax
call ebp
push 2
lea edx, [esp + 0x2c]
push edx
push esi
xor ebp, ebp
push ebp
call ebx
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push 1
sub eax, ebx
mov ebx, dword [esp + 0x64]
add ecx, 0xffffffef
push eax
push ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x24]
sub ecx, eax
add ecx, 0x14
push ecx
push 0xd
push ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push ebp
mov ebp, dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
call ebp
push ebx
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
call ebx
push 0xa
push 0
push 0
call fcn.0057c540
mov edx, dword [esp + 0x4c]
sub edx, 0x11
add esp, 0xc
test eax, eax
mov dword [esp + 0x38], 9
mov dword [esp + 0x40], edx
je 0x41ce56
mov eax, edx
sub eax, 2
mov dword [esp + 0x40], eax
push 0x12c
push esi
call edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [esp + 0x18]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x40]
push ecx
add eax, 0x19
push eax
push edx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push 0
push edi
call ebp
push edi
call ebx
push 0
push 1
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push esi
call ebp
push esi
call ebx
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret