Function at 0x489890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
push ebx
mov ebx, dword [0x4fd218]
lea edx, [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x1c], ebx
call fcn.00487680
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edi, eax
call fcn.0042c590
mov dword [esp + 0x18], eax
test eax, eax
jne 0x489920
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x489902
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
push 0x4cfc40
push 0
push 0x4e613c
call fcn.0044e3e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x4898d5
cmp word [esi], 0
jne 0x489930
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
mov eax, dword [0x4fc58c]
mov esi, 1
mov dword [esp + 0x2c], eax
mov eax, dword [0x4fc588]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [0x4fc58c], 0
mov dword [0x4fc588], 0
cmp eax, 3
je 0x489dc9
cmp eax, 4
je 0x489dc9
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00495a40
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x4899b0
mov ecx, dword [esp + 0x10]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.004b5b70
mov eax, dword [esp + 0x18]
cmp ebx, dword [edi + 0x10]
jae 0x489f38
shl ebx, 6
dec eax
add ebx, dword [edi + 0x18]
cmp eax, 7
ja case.0x4899c9.3
jmp dword [eax*4 + 0x489fbc]
push dword [ebp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x18]
call fcn.00494680
jmp 0x489f73
lea eax, [esp + 0x44]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x4f90f4]
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x489a2f
test byte [eax + 0x50], 4
je 0x489a2f
mov ebx, dword [esp + 0x10]
mov esi, 3
jmp 0x489a46
mov ebx, dword [esp + 0x10]
mov eax, 0
test byte [ebx + 0x16], 2
setne al
inc eax
mov dword [esp + 0xc], eax
mov esi, eax
push dword [ebx + 0x18]
lea eax, [esp + 0x84]
push 0x4f025c
push 0x111
push eax
call fcn.004b1470
add esp, 0x10
mov dword [esp + 0x10], eax
cmp word [esp + 0x80], 0
je case.0x4899c9.3
lea ecx, [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fdb78
push eax
call fcn.004404a0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x489acb
cmp byte [esp + 0x14], al
mov ecx, 0x4fdb78
setne al
inc eax
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x88]
push dword [esp + 0x18]
push eax
call fcn.00440a70
mov dword [esp + 0xc], eax
test eax, eax
je case.0x4899c9.3
cmp byte [edi + 0xc8], 0
je 0x489ae8
push dword [0x4fdb64]
push 0x60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x489aec
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push 0x18
cdq
push edx
push eax
call fcn.00401490
push dword [ebx + 0x18]
lea eax, [esp + 0x84]
push 0x4f0264
push 0x111
push eax
call fcn.004b1470
add esp, 0x10
mov dword [esp + 0x20], eax
cmp word [esp + 0x80], 0
je case.0x4899c9.3
lea ecx, [esp + 0x15]
push ecx
push esi
lea ecx, [esp + 0x18]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fdb78
push eax
call fcn.004404a0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x489b7f
cmp byte [esp + 0x15], al
mov ecx, 0x4fdb78
setne al
inc eax
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x88]
push dword [esp + 0x28]
push eax
call fcn.00440a70
mov dword [esp + 0xc], eax
test eax, eax
je case.0x4899c9.3
cmp byte [edi + 0xc8], 0
je 0x489b9c
push dword [0x4fdb64]
push 0x60
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x489ba0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
push 0x18
cdq
push edx
push eax
call fcn.00401490
push dword [ebx + 0x18]
lea eax, [esp + 0x84]
push 0x4f026c
push 0x111
push eax
call fcn.004b1470
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp word [esp + 0x80], 0
je case.0x4899c9.3
lea ecx, [esp + 0x16]
push ecx
push esi
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fdb78
push eax
call fcn.004404a0
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x489c35
cmp byte [esp + 0x16], al
mov ecx, 0x4fdb78
setne al
inc eax
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x88]
push dword [esp + 0x24]
push eax
call fcn.00440a70
mov dword [esp + 0xc], eax
test eax, eax
je case.0x4899c9.3
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp byte [edi + 0xc8], 0
je 0x489c55
push dword [0x4fdb64]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0xc]
push 0x18
cdq
push edx
push eax
call fcn.00401490
push dword [ebx + 0x18]
lea eax, [esp + 0x84]
push 0x4f0274
push 0x111
push eax
call fcn.004b1470
add esp, 0x10
mov ebx, eax
cmp word [esp + 0x80], 0
je case.0x4899c9.3
lea eax, [esp + 0x17]
mov ecx, 0x4fdb78
push eax
push esi
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x90]
push eax
call fcn.004404a0
mov esi, eax
test esi, esi
jne 0x489cdf
cmp byte [esp + 0x17], al
mov ecx, 0x4fdb78
setne al
inc eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x88]
push ebx
push eax
call fcn.00440a70
mov esi, eax
test esi, esi
je case.0x4899c9.3
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp byte [edi + 0xc8], 0
je 0x489cff
push dword [0x4fdb64]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x18
cdq
mov ecx, esi
push edx
push eax
call fcn.00401490
mov esi, 1
jmp 0x489f75
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4cfd08
push 0
mov edx, 0x4e613c
cmove edx, ecx
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call fcn.004b5b70
jmp 0x489f73
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowVisible]
push 1
test eax, eax
mov edx, 0x4cfd08
push 0
mov ecx, 0x4e613c
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004b5b70
jmp 0x489f73
push 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x58], 0x780030
push eax
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultow]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b5b70
jmp 0x489f73
mov eax, dword [ebx + 8]
test eax, eax
je 0x489f75
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push dword [eax + 0x18]
call fcn.004b5b70
jmp 0x489f73
xor esi, esi
jmp 0x489f75
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004b5b70
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
je 0x489f38
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x1c], edx
cmp edx, dword [edi + 0x10]
jb 0x489e25
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x489e18
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x489e1c
mov edx, dword [esp + 0x1c]
cmp edx, dword [edi + 0x10]
jae 0x489f38
mov eax, dword [edi + 0x18]
mov ecx, edx
shl ecx, 6
add eax, ecx
mov ecx, dword [eax]
cmp ecx, esi
jne 0x489f38
cmp edx, 0x2af8
je 0x489f38
test eax, eax
je 0x489f38
cmp dword [esp + 0x18], 4
jne 0x489ebd
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x489eb1
cmp dword [edi + 4], 0
je 0x489eb1
cmp eax, dword [edi + 0x10]
jae 0x489eb1
shl eax, 6
add eax, dword [edi + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x489e9d
mov ecx, dword [ecx + 0x18]
lea edx, [esp + 0x2a8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x489e87
jmp 0x489f21
push 0x40
lea ecx, [esp + 0x2ac]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x489f21
xor eax, eax
mov word [esp + 0x2a8], ax
jmp 0x489f21
lea eax, [esp + 0x2a8]
push 0xfc
push eax
push dword [esp + 0x48]
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x489f38
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
push eax
push 0x455970
push dword [edi + 4]
mov byte [esp + 0x44], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x38], 0
je 0x489f38
push dword [esp + 0x3c]
lea eax, [esp + 0x2ac]
push 0x4cfe14
push 0x101
push eax
call fcn.004b14c0
add esp, 0x10
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x2b4]
mov ecx, ebx
push eax
call fcn.004b5b70
jmp 0x489f73
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x489f5e
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
jmp 0x489f73
mov ecx, dword [esp + 0xc]
push 0x4cfc40
push 0
push 0x4e613c
call fcn.0044e3e0
mov esi, eax
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x489fb1
mov eax, dword [0x4fc58c]
test eax, eax
je 0x489fa2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4fc588], 0x400000
jbe 0x489fa2
dec dword [0x4fc584]
mov eax, dword [esp + 0x30]
mov dword [0x4fc58c], edi
mov dword [0x4fc588], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc