Function at 0x486240
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edi
mov edi, dword [0x4fd110]
push esi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x20], edi
call fcn.00483c50
mov ecx, dword [ebp + 8]
add esp, 0xc
mov ebx, eax
call fcn.0042a5b0
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4862d0
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x4862b2
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
push 0x4e3371
push 0
push 0x4e37f8
call fcn.0044d4a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x486285
cmp byte [esi], 0
jne 0x4862df
mov eax, dword [edi + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
call fcn.004b01a0
mov eax, dword [0x4fc484]
mov esi, 1
mov dword [esp + 0x30], eax
mov eax, dword [0x4fc480]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [0x4fc484], 0
mov dword [0x4fc480], 0
cmp eax, 3
je 0x48687f
cmp eax, 4
je 0x48687f
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.004928b0
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x48635f
mov ecx, dword [esp + 0x14]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.004b01a0
mov eax, dword [esp + 0x18]
cmp edi, dword [ebx + 0x10]
jae 0x4869e1
shl edi, 6
dec eax
add edi, dword [ebx + 0x18]
cmp eax, 7
ja case.0x486378.3
jmp dword [eax*4 + 0x486a64]
push dword [ebp + 0x10]
mov ecx, ebx
push edi
push dword [esp + 0x1c]
call fcn.004914e0
jmp 0x486a1c
lea eax, [esp + 0x48]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x4f898c]
mov eax, dword [eax + 0x94]
test eax, eax
je 0x4863e2
test byte [eax + 0x50], 4
je 0x4863e2
mov edi, dword [esp + 0x14]
mov esi, 3
mov dword [esp + 0x18], esi
jmp 0x4863f9
mov edi, dword [esp + 0x14]
mov eax, 0
test byte [edi + 0x16], 2
setne al
inc eax
mov dword [esp + 0x18], eax
mov esi, eax
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4ef9bc
push 0x111
push eax
call fcn.004aba90
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x486378.3
lea ecx, [esp + 0x1c]
push ecx
push esi
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4fda88
push eax
call fcn.0043eed0
mov esi, eax
test esi, esi
jne 0x486470
cmp byte [esp + 0x1c], al
mov ecx, 0x4fda88
setne al
inc eax
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.0043f410
mov esi, eax
test esi, esi
je case.0x486378.3
cmp byte [ebx + 0xc8], 0
je 0x48648d
push dword [0x4fda58]
push 0x60
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x486491
mov eax, dword [esp + 0x20]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x48649e
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x4864b7
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, dword [esp + 0x10]
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x4864d9
mov ecx, esi
call fcn.004014d0
and byte [esi + 0x15], 0x8f
jmp 0x4864e9
cmp dword [0x4fb974], 0
je 0x4864e9
mov ecx, esi
call fcn.004014d0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4ef9c0
push 0x111
push eax
call fcn.004aba90
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x486378.3
lea ecx, [esp + 0x1d]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4fda88
push eax
call fcn.0043eed0
mov esi, eax
test esi, esi
jne 0x486563
cmp byte [esp + 0x1d], al
mov ecx, 0x4fda88
setne al
inc eax
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.0043f410
mov esi, eax
test esi, esi
je case.0x486378.3
cmp byte [ebx + 0xc8], 0
je 0x486580
push dword [0x4fda58]
push 0x60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x486584
mov eax, dword [esp + 0x24]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x486591
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x4865aa
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, dword [esp + 0x10]
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x4865cc
mov ecx, esi
call fcn.004014d0
and byte [esi + 0x15], 0x8f
jmp 0x4865dc
cmp dword [0x4fb974], 0
je 0x4865dc
mov ecx, esi
call fcn.004014d0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4ef9c4
push 0x111
push eax
call fcn.004aba90
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x486378.3
lea ecx, [esp + 0x1e]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4fda88
push eax
call fcn.0043eed0
mov esi, eax
test esi, esi
jne 0x486656
cmp byte [esp + 0x1e], al
mov ecx, 0x4fda88
setne al
inc eax
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.0043f410
mov esi, eax
test esi, esi
je case.0x486378.3
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp byte [ebx + 0xc8], 0
mov dword [esp + 0x10], eax
je 0x48667e
push dword [0x4fda58]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x10], eax
cmp byte [esi + 0x17], 0
jne 0x486687
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x4866a0
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, dword [esp + 0x10]
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x4866c2
mov ecx, esi
call fcn.004014d0
and byte [esi + 0x15], 0x8f
jmp 0x4866d2
cmp dword [0x4fb974], 0
je 0x4866d2
mov ecx, esi
call fcn.004014d0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4ef9c8
push 0x111
push eax
call fcn.004aba90
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x70], 0
je case.0x486378.3
lea eax, [esp + 0x1f]
mov ecx, 0x4fda88
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x80]
push eax
call fcn.0043eed0
mov esi, eax
test esi, esi
jne 0x486747
cmp byte [esp + 0x1f], al
mov ecx, 0x4fda88
setne al
inc eax
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x78]
push edi
push eax
call fcn.0043f410
mov esi, eax
test esi, esi
je case.0x486378.3
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x4c]
cmp byte [ebx + 0xc8], 0
je 0x486769
push dword [0x4fda58]
push 0x60
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
cmp byte [esi + 0x17], 0
jne 0x486772
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x48678b
mov eax, dword [esi]
and cl, 0x3d
mov byte [esi + 0x15], cl
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x4867b3
mov ecx, esi
call fcn.004014d0
and byte [esi + 0x15], 0x8f
mov esi, 1
jmp 0x486a1e
cmp dword [0x4fb974], 0
je 0x4867c3
mov ecx, esi
call fcn.004014d0
mov esi, 1
jmp 0x486a1e
xor esi, esi
jmp 0x486a1e
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4e33f8
push 0
mov edx, 0x4e37f8
cmove edx, ecx
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call fcn.004b01a0
jmp 0x486a1c
push dword [edi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
push 1
test eax, eax
mov edx, 0x4e33f8
push 0
mov ecx, 0x4e37f8
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004b01a0
jmp 0x486a1c
push 0x10
lea eax, [esp + 0x5e]
mov word [esp + 0x5c], 0x7830
push eax
push dword [edi]
call fcn.004c3fed
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b01a0
jmp 0x486a1c
mov eax, dword [edi + 8]
test eax, eax
je 0x486a1e
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0xffffffffffffffff
push dword [eax + 0x18]
call fcn.004b01a0
jmp 0x486a1c
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004b01a0
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x4869e1
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0x10]
jb 0x4868d1
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x4868c8
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0x10]
jae 0x4869e1
mov eax, dword [ebx + 0x18]
mov ecx, edi
shl ecx, 6
add eax, ecx
mov ecx, dword [eax]
cmp ecx, esi
jne 0x4869e1
cmp edi, 0x2af8
je 0x4869e1
test eax, eax
je 0x4869e1
cmp dword [esp + 0x18], 4
jne 0x486964
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x48695a
cmp dword [ebx + 4], 0
je 0x48695a
cmp eax, dword [ebx + 0x10]
jae 0x48695a
shl eax, 6
add eax, dword [ebx + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x486946
mov ecx, dword [ecx + 0x18]
lea edx, [esp + 0x188]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x486933
jmp 0x4869c8
push 0x40
lea ecx, [esp + 0x18c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4869c8
mov byte [esp + 0x188], 0
jmp 0x4869c8
lea eax, [esp + 0x188]
push 0xfc
push eax
push dword [esp + 0x4c]
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x4869e1
lea eax, [esp + 0x38]
mov dword [esp + 0x40], 0
push eax
push 0x455300
push dword [ebx + 4]
mov byte [esp + 0x48], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x3c], 0
je 0x4869e1
push dword [esp + 0x40]
lea eax, [esp + 0x18c]
push 0x4e34e0
push 0x101
push eax
call fcn.004abae0
add esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x188]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b01a0
jmp 0x486a1c
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x486a07
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
jmp 0x486a1c
mov ecx, dword [esp + 0x10]
push 0x4e3371
push 0
push 0x4e37f8
call fcn.0044d4a0
mov esi, eax
mov edi, dword [esp + 0x30]
test edi, edi
je 0x486a59
mov eax, dword [0x4fc484]
test eax, eax
je 0x486a4a
push eax
call fcn.004c4247
add esp, 4
cmp dword [0x4fc480], 0x400000
jbe 0x486a4a
dec dword [0x4fc47c]
mov eax, dword [esp + 0x34]
mov dword [0x4fc484], edi
mov dword [0x4fc480], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc