Function at 0x488500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
push ebx
mov ebx, dword [0x4fc2a8]
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.00486360
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edi, eax
call fcn.0042bf40
mov dword [esp + 0x18], eax
test eax, eax
jne 0x488590
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x488572
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
push 0x4cec30
push 0
push 0x4e513c
call fcn.0044d640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x488545
cmp word [esi], 0
jne 0x4885a0
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
mov eax, dword [0x4fb61c]
mov esi, 1
mov dword [esp + 0x2c], eax
mov eax, dword [0x4fb618]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [0x4fb61c], 0
mov dword [0x4fb618], 0
cmp eax, 3
je 0x488a39
cmp eax, 4
je 0x488a39
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00494e70
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x488620
mov ecx, dword [esp + 0x10]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.004b4bf0
mov eax, dword [esp + 0x18]
cmp ebx, dword [edi + 0x10]
jae 0x488ba8
shl ebx, 6
dec eax
add ebx, dword [edi + 0x18]
cmp eax, 7
ja case.0x488639.3
jmp dword [eax*4 + 0x488c2c]
push dword [ebp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x18]
call fcn.00493ac0
jmp 0x488be3
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 [0x4f8174]
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x48869f
test byte [eax + 0x50], 4
je 0x48869f
mov ebx, dword [esp + 0x10]
mov esi, 3
jmp 0x4886b6
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 0x4ef1dc
push 0x111
push eax
call fcn.004b0610
add esp, 0x10
mov dword [esp + 0x10], eax
cmp word [esp + 0x80], 0
je case.0x488639.3
lea ecx, [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fcc10
push eax
call fcn.0043f980
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48873b
cmp byte [esp + 0x14], al
mov ecx, 0x4fcc10
setne al
inc eax
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x88]
push dword [esp + 0x18]
push eax
call fcn.0043ffc0
mov dword [esp + 0xc], eax
test eax, eax
je case.0x488639.3
cmp byte [edi + 0xc8], 0
je 0x488758
push dword [0x4fcbf8]
push 0x60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x48875c
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 0x4ef1e4
push 0x111
push eax
call fcn.004b0610
add esp, 0x10
mov dword [esp + 0x20], eax
cmp word [esp + 0x80], 0
je case.0x488639.3
lea ecx, [esp + 0x15]
push ecx
push esi
lea ecx, [esp + 0x18]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fcc10
push eax
call fcn.0043f980
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4887ef
cmp byte [esp + 0x15], al
mov ecx, 0x4fcc10
setne al
inc eax
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x88]
push dword [esp + 0x28]
push eax
call fcn.0043ffc0
mov dword [esp + 0xc], eax
test eax, eax
je case.0x488639.3
cmp byte [edi + 0xc8], 0
je 0x48880c
push dword [0x4fcbf8]
push 0x60
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x488810
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 0x4ef1ec
push 0x111
push eax
call fcn.004b0610
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp word [esp + 0x80], 0
je case.0x488639.3
lea ecx, [esp + 0x16]
push ecx
push esi
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x90]
mov ecx, 0x4fcc10
push eax
call fcn.0043f980
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4888a5
cmp byte [esp + 0x16], al
mov ecx, 0x4fcc10
setne al
inc eax
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x88]
push dword [esp + 0x24]
push eax
call fcn.0043ffc0
mov dword [esp + 0xc], eax
test eax, eax
je case.0x488639.3
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp byte [edi + 0xc8], 0
je 0x4888c5
push dword [0x4fcbf8]
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 0x4ef1f4
push 0x111
push eax
call fcn.004b0610
add esp, 0x10
mov ebx, eax
cmp word [esp + 0x80], 0
je case.0x488639.3
lea eax, [esp + 0x17]
mov ecx, 0x4fcc10
push eax
push esi
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x90]
push eax
call fcn.0043f980
mov esi, eax
test esi, esi
jne 0x48894f
cmp byte [esp + 0x17], al
mov ecx, 0x4fcc10
setne al
inc eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x88]
push ebx
push eax
call fcn.0043ffc0
mov esi, eax
test esi, esi
je case.0x488639.3
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp byte [edi + 0xc8], 0
je 0x48896f
push dword [0x4fcbf8]
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 0x488be5
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4cecf8
push 0
mov edx, 0x4e513c
cmove edx, ecx
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call fcn.004b4bf0
jmp 0x488be3
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowVisible]
push 1
test eax, eax
mov edx, 0x4cecf8
push 0
mov ecx, 0x4e513c
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004b4bf0
jmp 0x488be3
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.004b4bf0
jmp 0x488be3
mov eax, dword [ebx + 8]
test eax, eax
je 0x488be5
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push dword [eax + 0x18]
call fcn.004b4bf0
jmp 0x488be3
xor esi, esi
jmp 0x488be5
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004b4bf0
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x40], esi
test esi, esi
je 0x488ba8
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x1c], edx
cmp edx, dword [edi + 0x10]
jb 0x488a95
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x488a88
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x488a8c
mov edx, dword [esp + 0x1c]
cmp edx, dword [edi + 0x10]
jae 0x488ba8
mov eax, dword [edi + 0x18]
mov ecx, edx
shl ecx, 6
add eax, ecx
mov ecx, dword [eax]
cmp ecx, esi
jne 0x488ba8
cmp edx, 0x2af8
je 0x488ba8
test eax, eax
je 0x488ba8
cmp dword [esp + 0x18], 4
jne 0x488b2d
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x488b21
cmp dword [edi + 4], 0
je 0x488b21
cmp eax, dword [edi + 0x10]
jae 0x488b21
shl eax, 6
add eax, dword [edi + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x488b0d
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 0x488af7
jmp 0x488b91
push 0x40
lea ecx, [esp + 0x2ac]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x488b91
xor eax, eax
mov word [esp + 0x2a8], ax
jmp 0x488b91
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 0x488ba8
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
push eax
push 0x454b00
push dword [edi + 4]
mov byte [esp + 0x44], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x38], 0
je 0x488ba8
push dword [esp + 0x3c]
lea eax, [esp + 0x2ac]
push 0x4cee04
push 0x101
push eax
call fcn.004b0660
add esp, 0x10
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x2b4]
mov ecx, ebx
push eax
call fcn.004b4bf0
jmp 0x488be3
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x488bce
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
jmp 0x488be3
mov ecx, dword [esp + 0xc]
push 0x4cec30
push 0
push 0x4e513c
call fcn.0044d640
mov esi, eax
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x488c21
mov eax, dword [0x4fb61c]
test eax, eax
je 0x488c12
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4fb618], 0x400000
jbe 0x488c12
dec dword [0x4fb614]
mov eax, dword [esp + 0x30]
mov dword [0x4fb61c], edi
mov dword [0x4fb618], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc