Function at 0x4785e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x4eceb0]
lea edx, [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x28], edi
call fcn.00475ff0
mov esi, dword [ebp + 8]
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp byte [esi], 0
jne 0x47862b
mov edi, 1
jmp 0x4786d1
push 0x4de678
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x478645
lea edi, [eax + 2]
jmp 0x4786d1
push str.Focus
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x47865c
lea edi, [eax + 3]
jmp 0x4786d1
push str.FocusV
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x478673
lea edi, [eax + 4]
jmp 0x4786d1
push str.Enabled
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x47868a
lea edi, [eax + 5]
jmp 0x4786d1
push str.Visible
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x4786a1
lea edi, [eax + 6]
jmp 0x4786d1
push str.Hwnd
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x4786b8
lea edi, [eax + 7]
jmp 0x4786d1
push str.Name
push esi
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x478ea1
lea edi, [eax + 8]
test ebx, ebx
jne 0x47870b
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne 0x478702
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x1c]
jmp 0x478eb5
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x47871d
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5290
call fcn.004a2730
mov eax, dword [0x4ec228]
mov esi, 1
mov dword [esp + 0x30], eax
mov eax, dword [0x4ec224]
mov dword [esp + 0x34], eax
mov dword [0x4ec228], 0
mov dword [0x4ec224], 0
cmp edi, 3
je 0x478cb0
cmp edi, 4
je 0x478cb0
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00484d40
mov ebx, eax
cmp edi, 2
je 0x478791
mov ecx, dword [esp + 0x10]
push esi
push 0
push 0xffffffffffffffff
push 0
call fcn.004a2730
mov ecx, dword [esp + 0x14]
cmp ebx, dword [ecx + 0x10]
jae case.default.0x4787a7
shl ebx, 6
lea eax, [edi - 1]
add ebx, dword [ecx + 0x18]
jmp dword [eax*4 + 0x478ed0]
push dword [ebp + 0x10]
push ebx
push dword [esp + 0x18]
call fcn.00483970
jmp 0x478e59
lea eax, [esp + 0x48]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x4e88cc]
mov eax, dword [eax + 0x94]
test eax, eax
je 0x478813
test byte [eax + 0x50], 4
je 0x478813
mov edi, dword [esp + 0x10]
mov esi, 3
mov dword [esp + 0x14], esi
jmp 0x47882a
mov edi, dword [esp + 0x10]
mov eax, 0
test byte [edi + 0x16], 2
setne al
inc eax
mov dword [esp + 0x14], eax
mov esi, eax
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4e0164
push 0x111
push eax
call fcn.0049e100
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x4787a7.2
lea ecx, [esp + 0x18]
push ecx
push esi
lea ecx, [esp + 0x24]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4ed830
push eax
call fcn.00430710
mov esi, eax
test esi, esi
jne 0x4788a1
cmp byte [esp + 0x18], al
mov ecx, 0x4ed830
setne al
inc eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x4787a7.2
cmp byte [ebx + 0xc8], 0
je 0x4788be
push dword [0x4ed800]
push 0x60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x4788c2
mov eax, dword [esp + 0x24]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x4788cf
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x4788e8
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 0x47890a
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x47891a
cmp dword [0x4eb748], 0
je 0x47891a
mov ecx, esi
call fcn.004013b0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4e0168
push 0x111
push eax
call fcn.0049e100
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x4787a7.2
lea ecx, [esp + 0x19]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4ed830
push eax
call fcn.00430710
mov esi, eax
test esi, esi
jne 0x478994
cmp byte [esp + 0x19], al
mov ecx, 0x4ed830
setne al
inc eax
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x4787a7.2
cmp byte [ebx + 0xc8], 0
je 0x4789b1
push dword [0x4ed800]
push 0x60
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_MulDiv]
jmp 0x4789b5
mov eax, dword [esp + 0x28]
cmp byte [esi + 0x17], 0
mov dword [esp + 0x10], eax
jne 0x4789c2
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x4789db
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 0x4789fd
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x478a0d
cmp dword [0x4eb748], 0
je 0x478a0d
mov ecx, esi
call fcn.004013b0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4e016c
push 0x111
push eax
call fcn.0049e100
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [esp + 0x70], 0
je case.0x4787a7.2
lea ecx, [esp + 0x1a]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x80]
mov ecx, 0x4ed830
push eax
call fcn.00430710
mov esi, eax
test esi, esi
jne 0x478a87
cmp byte [esp + 0x1a], al
mov ecx, 0x4ed830
setne al
inc eax
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x78]
push dword [esp + 0x18]
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x4787a7.2
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cmp byte [ebx + 0xc8], 0
mov dword [esp + 0x10], eax
je 0x478aaf
push dword [0x4ed800]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x10], eax
cmp byte [esi + 0x17], 0
jne 0x478ab8
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x478ad1
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 0x478af3
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x478b03
cmp dword [0x4eb748], 0
je 0x478b03
mov ecx, esi
call fcn.004013b0
push dword [edi + 0x18]
lea eax, [esp + 0x74]
push 0x4e0170
push 0x111
push eax
call fcn.0049e100
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x70], 0
je case.0x4787a7.2
lea eax, [esp + 0x1b]
mov ecx, 0x4ed830
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x80]
push eax
call fcn.00430710
mov esi, eax
test esi, esi
jne 0x478b78
cmp byte [esp + 0x1b], al
mov ecx, 0x4ed830
setne al
inc eax
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x78]
push edi
push eax
call fcn.00430c50
mov esi, eax
test esi, esi
je case.0x4787a7.2
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x4c]
cmp byte [ebx + 0xc8], 0
je 0x478b9a
push dword [0x4ed800]
push 0x60
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
cmp byte [esi + 0x17], 0
jne 0x478ba3
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x478bbc
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 0x478be4
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
mov esi, 1
jmp 0x478e5b
cmp dword [0x4eb748], 0
je 0x478bf4
mov ecx, esi
call fcn.004013b0
mov esi, 1
jmp 0x478e5b
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push 1
test eax, eax
mov ecx, 0x4d5290
push 0
mov edx, 0x4d9c00
cmove edx, ecx
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call fcn.004a2730
jmp 0x478e59
xor esi, esi
jmp 0x478e5b
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004a2730
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je case.default.0x4787a7
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x20], edx
cmp edx, dword [ebx + 0x10]
jb 0x478d0e
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x478d01
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x478d05
mov edx, dword [esp + 0x20]
cmp edx, dword [ebx + 0x10]
jae case.default.0x4787a7
mov eax, dword [ebx + 0x18]
mov ecx, edx
shl ecx, 6
add eax, ecx
mov ecx, dword [eax]
cmp ecx, esi
jne case.default.0x4787a7
cmp edx, 0x2af8
je case.default.0x4787a7
test eax, eax
je case.default.0x4787a7
cmp edi, 4
jne 0x478da1
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 3
cmp eax, 0x2af8
jae 0x478d97
cmp dword [ebx + 4], 0
je 0x478d97
cmp eax, dword [ebx + 0x10]
jae 0x478d97
shl eax, 6
add eax, dword [ebx + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x478d83
mov ecx, dword [ecx + 0x18]
lea edx, [esp + 0x188]
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x478d70
jmp 0x478e05
push 0x40
lea ecx, [esp + 0x18c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x478e05
mov byte [esp + 0x188], 0
jmp 0x478e05
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 case.default.0x4787a7
lea eax, [esp + 0x38]
mov dword [esp + 0x40], 0
push eax
push 0x446710
push dword [ebx + 4]
mov byte [esp + 0x48], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [esp + 0x3c], 0
je case.default.0x4787a7
push dword [esp + 0x40]
lea eax, [esp + 0x18c]
push 0x4d5378
push 0x101
push eax
call fcn.0049e150
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x188]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2730
jmp 0x478e59
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne 0x478e44
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
jmp 0x478e59
mov ecx, dword [esp + 0x1c]
push 0x4d5231
push 0
push 0x4d9c00
call fcn.0043e650
mov esi, eax
mov edi, dword [esp + 0x30]
test edi, edi
je 0x478e96
mov eax, dword [0x4ec228]
test eax, eax
je 0x478e87
push eax
call fcn.004b6427
add esp, 4
cmp dword [0x4ec224], 0x400000
jbe 0x478e87
dec dword [0x4ec220]
mov eax, dword [esp + 0x34]
mov dword [0x4ec228], edi
mov dword [0x4ec224], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
je 0x4786e3
mov ecx, edi
push 0x4d5231
push 0
push 0x4d9c00
call fcn.0043e650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc