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

Disassembly:
mov eax, 0x186c
call fcn.004df840
mov eax, dword [0x50fb70]
xor eax, esp
mov dword [esp + 0x1868], eax
mov eax, dword [esp + 0x1874]
push ebx
mov ebx, dword [esp + 0x1874]
push ebp
push esi
push edi
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
call fcn.004608b0
mov byte [esp + 0x13], al
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x68]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
sub ecx, dword [esp + 0x34]
sub esi, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x74]
inc ecx
inc esi
mov edx, ecx
mov edi, esi
sub edx, eax
sub edi, ebp
cmp byte [esp + 0x13], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], edi
je 0x460c90
cmp byte [esp + 0x1888], 0
jne 0x460cd7
imul eax, dword [esp + 0x20]
imul ebp, dword [esp + 0x18]
mov edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, dword [esp + 0x28]
mov eax, 0x51eb851f
imul ebp
sar edx, 5
mov ebp, edx
mov eax, ecx
sub eax, edi
shr ebp, 0x1f
add ebp, edx
add ebp, dword [esp + 0x1c]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
sub eax, ebp
cdq
sub eax, edx
sar ecx, 1
add ecx, dword [esp + 0x34]
mov esi, eax
sar esi, 1
add esi, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
test ecx, ecx
jge 0x460c45
mov dword [esp + 0x14], 0
test esi, esi
jge 0x460c4b
xor esi, esi
push 0xfffffffffffffff0
push ebx
mov dword [esp + 0x2c], 0x204
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x800
mov eax, 0x206
je 0x460c6c
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
push ebp
push edi
push esi
push edx
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x1c]
jmp 0x460c9a
cmp byte [esp + 0x1888], 0
jne 0x460cd7
push 0x400
lea ecx, [esp + 0x7c]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esp + 0x30]
push edx
push 1
push 0x400
lea eax, [esp + 0x84]
mov ecx, eax
push eax
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004606d0
lea edx, [esp + 0x78]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
sub edi, eax
push ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], 0
test edi, edi
je 0x460ea7
jmp 0x460d10
cmp dword [esp + 0x14], 0x200
jge 0x460ea7
push 0x400
lea eax, [esp + 0x7c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x78], 0
je 0x460d63
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push 1
push 0x400
lea edx, [esp + 0x84]
push edx
mov eax, edx
push eax
call fcn.004606d0
lea ecx, [esp + 0x78]
push ecx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [esp + 0x13], 0
je 0x460e8a
lea edx, [esp + 0x48]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
mov ecx, esi
sub ecx, eax
sub ecx, dword [esp + 0x34]
mov eax, 0x51eb851f
imul ecx, dword [esp + 0x20]
imul ecx
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x1c]
sar edx, 5
sub ecx, dword [esp + 0x38]
mov ebp, edx
imul ecx, dword [esp + 0x18]
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 + 0x20]
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 + 0x18]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push 0x800
lea eax, [esp + 0x87c]
mov esi, edx
push eax
shr esi, 0x1f
push edi
add esi, edx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x4fb1d4
lea ecx, [esp + 0x87c]
push ecx
call fcn.00469f00
test eax, eax
jne 0x460e74
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x460e74
lea edx, [esp + 0x58]
push edx
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 + 0x18]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add esi, eax
mov ecx, dword [esp + 0x24]
push 0x204
push esi
push ecx
push ebx
push ebp
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
cmp edi, dword [esp + 0x44]
je 0x460ea7
inc dword [esp + 0x14]
test edi, edi
jne 0x460d10
mov ecx, dword [esp + 0x1878]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004df824
add esp, 0x186c
ret 0xc