Function at 0x489410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
push ebx
mov ebx, dword [0x4fd228]
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.00487260
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edi, eax
call fcn.0042c4b0
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4894a0
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x489482
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
push 0x4cfc30
push 0
push 0x4e613c
call fcn.0044e0b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x489455
cmp word [esi], 0
jne 0x4894b0
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
mov eax, dword [0x4fc59c]
mov esi, 1
mov dword [esp + 0x2c], eax
mov eax, dword [0x4fc598]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [0x4fc59c], 0
mov dword [0x4fc598], 0
cmp eax, 3
je 0x489949
cmp eax, 4
je 0x489949
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00495550
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x489530
mov ecx, dword [esp + 0x10]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.004b55f0
mov eax, dword [esp + 0x18]
cmp ebx, dword [edi + 0x10]
jae 0x489ab8
shl ebx, 6
dec eax
add ebx, dword [edi + 0x18]
cmp eax, 7
ja case.0x489549.3
jmp dword [eax*4 + 0x489b3c]
push dword [ebp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x18]
call fcn.004941a0
jmp 0x489af3
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 0x4895af
test byte [eax + 0x50], 4
je 0x4895af
mov ebx, dword [esp + 0x10]
mov esi, 3
jmp 0x4895c6
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 0x4f0214
push 0x111
push eax
call fcn.004b0fe0
add esp, 0x10
mov dword [esp + 0x10], eax
cmp word [esp + 0x80], 0
je case.0x489549.3
lea ecx, [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fdb90
push eax
call fcn.004401f0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48964b
cmp byte [esp + 0x14], al
mov ecx, 0x4fdb90
setne al
inc eax
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x88]
push dword [esp + 0x18]
push eax
call fcn.004407c0
mov dword [esp + 0xc], eax
test eax, eax
je case.0x489549.3
cmp byte [edi + 0xc8], 0
je 0x489668
push dword [0x4fdb78]
push 0x60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x48966c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push 0x18
cdq
push edx
push eax
call fcn.00401470
push dword [ebx + 0x18]
lea eax, [esp + 0x84]
push 0x4f021c
push 0x111
push eax
call fcn.004b0fe0
add esp, 0x10
mov dword [esp + 0x20], eax
cmp word [esp + 0x80], 0
je case.0x489549.3
lea ecx, [esp + 0x15]
push ecx
push esi
lea ecx, [esp + 0x18]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fdb90
push eax
call fcn.004401f0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4896ff
cmp byte [esp + 0x15], al
mov ecx, 0x4fdb90
setne al
inc eax
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x88]
push dword [esp + 0x28]
push eax
call fcn.004407c0
mov dword [esp + 0xc], eax
test eax, eax
je case.0x489549.3
cmp byte [edi + 0xc8], 0
je 0x48971c
push dword [0x4fdb78]
push 0x60
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x489720
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
push 0x18
cdq
push edx
push eax
call fcn.00401470
push dword [ebx + 0x18]
lea eax, [esp + 0x84]
push 0x4f0224
push 0x111
push eax
call fcn.004b0fe0
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp word [esp + 0x80], 0
je case.0x489549.3
lea ecx, [esp + 0x16]
push ecx
push esi
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fdb90
push eax
call fcn.004401f0
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4897b5
cmp byte [esp + 0x16], al
mov ecx, 0x4fdb90
setne al
inc eax
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x88]
push dword [esp + 0x24]
push eax
call fcn.004407c0
mov dword [esp + 0xc], eax
test eax, eax
je case.0x489549.3
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp byte [edi + 0xc8], 0
je 0x4897d5
push dword [0x4fdb78]
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.00401470
push dword [ebx + 0x18]
lea eax, [esp + 0x84]
push 0x4f022c
push 0x111
push eax
call fcn.004b0fe0
add esp, 0x10
mov ebx, eax
cmp word [esp + 0x80], 0
je case.0x489549.3
lea eax, [esp + 0x17]
mov ecx, 0x4fdb90
push eax
push esi
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x90]
push eax
call fcn.004401f0
mov esi, eax
test esi, esi
jne 0x48985f
cmp byte [esp + 0x17], al
mov ecx, 0x4fdb90
setne al
inc eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x88]
push ebx
push eax
call fcn.004407c0
mov esi, eax
test esi, esi
je case.0x489549.3
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp byte [edi + 0xc8], 0
je 0x48987f
push dword [0x4fdb78]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x18
cdq
mov ecx, esi
push edx
push eax
call fcn.00401470
mov esi, 1
jmp 0x489af5
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4cfcf8
push 0
mov edx, 0x4e613c
cmove edx, ecx
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call fcn.004b55f0
jmp 0x489af3
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowVisible]
push 1
test eax, eax
mov edx, 0x4cfcf8
push 0
mov ecx, 0x4e613c
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004b55f0
jmp 0x489af3
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.004b55f0
jmp 0x489af3
mov eax, dword [ebx + 8]
test eax, eax
je 0x489af5
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push dword [eax + 0x18]
call fcn.004b55f0
jmp 0x489af3
xor esi, esi
jmp 0x489af5
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004b55f0
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
je 0x489ab8
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x1c], edx
cmp edx, dword [edi + 0x10]
jb 0x4899a5
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x489998
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x48999c
mov edx, dword [esp + 0x1c]
cmp edx, dword [edi + 0x10]
jae 0x489ab8
mov eax, dword [edi + 0x18]
mov ecx, edx
shl ecx, 6
add eax, ecx
mov ecx, dword [eax]
cmp ecx, esi
jne 0x489ab8
cmp edx, 0x2af8
je 0x489ab8
test eax, eax
je 0x489ab8
cmp dword [esp + 0x18], 4
jne 0x489a3d
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x489a31
cmp dword [edi + 4], 0
je 0x489a31
cmp eax, dword [edi + 0x10]
jae 0x489a31
shl eax, 6
add eax, dword [edi + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x489a1d
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 0x489a07
jmp 0x489aa1
push 0x40
lea ecx, [esp + 0x2ac]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x489aa1
xor eax, eax
mov word [esp + 0x2a8], ax
jmp 0x489aa1
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 0x489ab8
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
push eax
push 0x455630
push dword [edi + 4]
mov byte [esp + 0x44], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x38], 0
je 0x489ab8
push dword [esp + 0x3c]
lea eax, [esp + 0x2ac]
push 0x4cfe04
push 0x101
push eax
call fcn.004b1030
add esp, 0x10
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x2b4]
mov ecx, ebx
push eax
call fcn.004b55f0
jmp 0x489af3
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x489ade
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
jmp 0x489af3
mov ecx, dword [esp + 0xc]
push 0x4cfc30
push 0
push 0x4e613c
call fcn.0044e0b0
mov esi, eax
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x489b31
mov eax, dword [0x4fc59c]
test eax, eax
je 0x489b22
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4fc598], 0x400000
jbe 0x489b22
dec dword [0x4fc594]
mov eax, dword [esp + 0x30]
mov dword [0x4fc59c], edi
mov dword [0x4fc598], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc