Function at 0x4876d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487ad0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebx + 4], 0
jne 0x487742
cmp byte [ebx + 0xd], 0
jne 0x487742
cmp byte [ebx + 0x14], 0
jne 0x487742
cmp byte [ebx + 0xc], 0
jne 0x487742
cmp byte [ebx + 0x1c], 0
jne 0x487742
cmp byte [ebx + 0x24], 0
jne 0x487742
cmp byte [ebx + 0x2c], 0
je 0x487ab2
cmp byte [ebx + 0x14], 0
jne 0x48774f
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x48775a
mov eax, dword [ebx + 0x18]
call fcn.004045f0
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x48798d
cmp byte [ebx + 0xc], 0
jne 0x487791
push edi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x487791
push edi
call sub.user32.dll_IsIconic
test eax, eax
je 0x487975
mov byte [ebp - 0x15], 1
cmp byte [ebx + 0xd], 0
je 0x487810
push 0xfe
lea eax, [ebp - 0x123]
push eax
push edi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x123]
mov ecx, 0xff
call fcn.004043a0
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call fcn.00408330
mov eax, dword [ebp - 0x128]
push eax
lea edx, [ebp - 0x130]
mov eax, dword [ebx + 0x10]
call fcn.00408330
mov eax, dword [ebp - 0x130]
pop edx
call fcn.00404734
test eax, eax
jne 0x487810
mov byte [ebp - 0x15], 0
cmp byte [ebp - 0x123], 0
jne 0x487810
cmp dword [ebx + 0x10], 0
jne 0x487810
mov byte [ebp - 0x15], 1
cmp byte [ebp - 0x15], 0
je 0x487975
cmp byte [ebx + 0x24], 0
jne 0x48782a
cmp byte [ebx + 0x2c], 0
je 0x487950
mov dl, 1
mov eax, dword [0x487374]
call fcn.0040332c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x487588
push edi
call sub.user32.dll_EnumChildWindows
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x487946
inc esi
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x15], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004874f0
mov dword [ebp - 0xc], eax
cmp byte [ebx + 0x24], 0
je 0x4878b4
push 0xfe
lea eax, [ebp - 0x123]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x123]
mov ecx, 0xff
call fcn.004043a0
mov edx, dword [ebp - 0x134]
mov eax, dword [ebx + 0x28]
call fcn.0040453c
sete byte [ebp - 0x15]
cmp byte [ebx + 0x2c], 0
je 0x48790a
push 0xfe
lea eax, [ebp - 0x123]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetClassNameA
cmp byte [ebp - 0x15], 0
jne 0x4878db
cmp byte [ebx + 0x24], 0
jne 0x487901
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x123]
mov ecx, 0xff
call fcn.004043a0
mov edx, dword [ebp - 0x138]
mov eax, dword [ebx + 0x30]
call fcn.0040453c
je 0x487905
xor eax, eax
jmp 0x487907
mov al, 1
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x48793c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x487929
mov dl, 1
mov eax, dword [0x487374]
call fcn.0040332c
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00487474
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
inc dword [ebp - 0x20]
dec esi
jne 0x48785f
mov eax, dword [ebp - 0x14]
call fcn.0040335c
jmp 0x487975
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x487969
mov dl, 1
mov eax, dword [0x487374]
call fcn.0040332c
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, edi
call fcn.00487474
push 0
mov eax, dword [ebp - 0x24]
push eax
push edi
push 0
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
jne 0x487773
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x487ab2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 8], 0
je 0x487ab2
cmp byte [ebx + 0x1c], 0
je 0x487a3e
mov dl, 1
mov eax, dword [0x487374]
call fcn.0040332c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x20]
call fcn.004875ac
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, edi
call fcn.004874f0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x487a17
inc esi
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004874f0
cmp eax, dword [ebp - 0x1c]
jne 0x487a11
mov byte [ebp - 0x15], 1
jmp 0x487a17
inc dword [ebp - 0x20]
dec esi
jne 0x4879fb
cmp byte [ebp - 0x15], 0
jne 0x487a2b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, edi
call fcn.00487494
jmp 0x487a2c
inc edi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp edi, dword [eax + 8]
jl 0x4879ce
mov eax, dword [ebp - 0x10]
call fcn.0040335c
cmp byte [ebx + 4], 0
je 0x487a93
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 8]
call fcn.004087b0
mov ebx, eax
test ebx, ebx
jne 0x487a5c
mov ebx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp ebx, dword [eax + 8]
jg 0x487a76
mov edx, ebx
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004874f0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004874bc
cmp dword [ebp - 0x1c], 0
je 0x487a93
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
call fcn.00487474
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
test eax, eax
je 0x487ab2
mov edx, dword [ebp - 4]
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004874f0
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487ad7
lea eax, [ebp - 0x138]
mov edx, 5
call fcn.00404154
ret