Function at 0x460240
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x106c
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x1068], eax
mov eax, dword [esp + 0x1074]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1080]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], eax
call fcn.0045ffb0
mov byte [esp + 0x13], al
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x68]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x74]
sub esi, ecx
sub esi, dword [esp + 0x38]
sub ebx, eax
sub ebx, dword [esp + 0x3c]
inc esi
inc ebx
cmp byte [esp + 0x13], 0
mov dword [esp + 0x30], esi
je 0x460321
cmp byte [esp + 0x1088], 0
jne 0x460366
imul eax, dword [esp + 0x14]
imul ecx, dword [esp + 0x18]
mov edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
push 0x206
add eax, edx
add eax, ebx
push eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, esi
push ecx
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x46032b
cmp byte [esp + 0x1088], 0
jne 0x460366
push 0x400
lea edx, [esp + 0x7c]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x20]
push eax
push 1
push 0x400
lea ecx, [esp + 0x84]
push ecx
mov edx, ecx
push edx
mov ecx, ebp
call fcn.0045fde0
lea eax, [esp + 0x78]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
sub ebx, eax
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], 0
test edi, edi
je 0x46053d
jmp 0x4603a0
cmp dword [esp + 0x1c], 0x200
jge 0x46053d
push 0x400
lea ecx, [esp + 0x7c]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x78], 0
je 0x4603f1
mov edx, dword [esp + 0x20]
push edx
push 1
push 0x400
lea eax, [esp + 0x84]
mov ecx, eax
push eax
push ecx
mov ecx, ebp
call fcn.0045fde0
lea edx, [esp + 0x78]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [esp + 0x13], 0
je 0x460520
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, esi
mov esi, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
mov ecx, esi
sub ecx, eax
sub ecx, dword [esp + 0x38]
mov eax, 0x51eb851f
imul ecx, dword [esp + 0x18]
imul ecx
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x3c]
sar edx, 5
sub ecx, ebx
imul ecx, dword [esp + 0x14]
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esp + 0x50]
sub ecx, esi
inc ecx
imul ecx, dword [esp + 0x18]
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
sar edx, 5
inc ecx
imul ecx, dword [esp + 0x14]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push 0x400
lea ecx, [esp + 0x87c]
mov esi, edx
push ecx
shr esi, 0x1f
push edi
add esi, edx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x4bc36c
lea edx, [esp + 0x87c]
push edx
call fcn.00472b40
test eax, eax
jne 0x4604fe
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x4604fe
lea eax, [esp + 0x58]
push eax
push 0
push 0x152
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
mov eax, 0x51eb851f
inc ecx
imul ecx, dword [esp + 0x14]
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esi, ecx
mov edx, dword [esp + 0x28]
push 0x204
push esi
push edx
push ebx
push ebp
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
cmp edi, dword [esp + 0x34]
je 0x46053d
inc dword [esp + 0x1c]
test edi, edi
jne 0x4603a0
mov ecx, dword [esp + 0x1078]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3c63
add esp, 0x106c
ret 0xc