Function at 0x477c80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x880
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov al, byte [edi + 0x49c]
test al, al
jne 0x47802f
mov eax, dword [edi + 0x454]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
push 0x104
je 0x477cfb
mov ecx, dword [edi + 0x44c]
lea eax, [ebp - 0x28c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x47802f
lea edx, [ebp - 0x28c]
lea ecx, [edi + 0x474]
push edx
call fcn.00402e10
jmp 0x477d2a
mov ecx, dword [edi + 0x44c]
lea eax, [ebp - 0x188]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x47802f
lea edx, [ebp - 0x188]
push ebx
lea ecx, [edi + 0x474]
push edx
call fcn.00402600
xor esi, esi
mov dword [ebp - 0x20], esi
cmp esi, dword [edi + 0x6c]
jge 0x47802f
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
mov eax, dword [edi + 0x68]
lea esi, [esi + esi*2]
shl esi, 4
mov byte [ebp - 4], 1
mov eax, dword [esi + eax + 8]
add eax, 0x54
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x477d5f
lea ecx, [eax + 4]
lea edx, [ebp - 0x68c]
lea eax, [ebp - 0x48c]
push edx
push eax
lea edx, [ebp - 0x88c]
lea eax, [ebp - 0x6c]
push edx
push eax
push ecx
call fcn.0056e216
mov eax, dword [edi + 0x474]
add esp, 0x14
cmp eax, ebx
jne 0x477d91
lea eax, [edi + 0x478]
push eax
call fcn.0056ca2e
mov ecx, dword [edi + 0x474]
add esp, 4
cmp ecx, ebx
jne 0x477daa
lea ecx, [edi + 0x478]
cmp word [ecx + eax*2 - 2], 0x5c
mov ebx, 0x66318c
je 0x477dbc
mov ebx, 0x639030
mov eax, dword [edi + 0x474]
test eax, eax
jne 0x477dcc
lea eax, [edi + 0x478]
mov ecx, str._s_s_s_s
test ecx, ecx
je 0x477f4c
test eax, eax
je 0x477f4c
test ebx, ebx
je 0x477f4c
lea edx, [ebp - 0x48c]
test edx, edx
je 0x477f4c
lea ecx, [ebp - 0x68c]
test ecx, ecx
je 0x477f4c
push eax
lea ecx, [ebp - 0x40]
call fcn.004039b0
push ebx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004039b0
lea edx, [ebp - 0x48c]
lea ecx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 3
call fcn.004039b0
lea eax, [ebp - 0x68c]
lea ecx, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 4
call fcn.004039b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00401070
push str._s_s_s_s
lea ecx, [ebp - 0x58]
call fcn.004039e0
mov edi, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00403a60
push eax
call fcn.0056ca2e
add esp, 4
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.00403a60
push eax
call fcn.0056ca2e
add esp, 4
lea ecx, [ebp - 0x64]
add ebx, eax
call fcn.00403a60
push eax
call fcn.0056ca2e
mov dword [ebp - 0x24], ebx
mov ebx, eax
add esp, 4
lea ecx, [ebp - 0x40]
add ebx, edi
call fcn.00403a60
push eax
call fcn.0056ca2e
mov ecx, dword [ebp - 0x24]
add ebx, ecx
add eax, ebx
lea edx, [eax + eax + 2]
push edx
call fcn.00584a5c
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x477f0d
lea ecx, [ebp - 0x4c]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x34]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x64]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x40]
call fcn.00403a60
push eax
lea ecx, [ebp - 0x58]
call fcn.00403a60
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0056ca74
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0056ca2e
add esp, 0x1c
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
mov edi, dword [ebp - 0x28]
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x60]
push 0
mov eax, dword [esi + edx + 0x18]
lea edx, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [0x66351c]
push edx
call fcn.0045bab0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x477f73
lea eax, [ebp - 0x18]
push eax
mov eax, dword [edi + 0x68]
mov ecx, dword [esi + eax + 8]
call fcn.0053ea10
mov ecx, dword [edi + 0x68]
mov eax, dword [ebp - 0x20]
mov edx, dword [esi + ecx + 8]
lea ecx, [ebp - 0x84]
push ecx
push 0xffffffffffffffff
mov byte [edx + 0x179], 1
mov edx, dword [edi + 0x42c]
push 0x100d
push edx
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x7c], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jl 0x47800d
mov eax, dword [0x663684]
test eax, eax
je 0x477ff0
mov eax, dword [0x663520]
test eax, eax
mov ecx, eax
jne 0x477fd8
mov ecx, 0x663524
mov eax, dword [0x663530]
test eax, eax
jne 0x477fe6
mov eax, 0x663534
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c990
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x477ffa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [edi + 0x42c]
push esi
push 4
push eax
call fcn.00435ef0
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, dword [ebp - 0x20]
inc eax
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov esi, eax
jmp 0x477d2f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret